Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding ha = true to existing do_kubernetes_cluster (1.23.14) fails #926

Closed
gladiatr72 opened this issue Feb 3, 2023 · 1 comment · Fixed by #1058
Closed

adding ha = true to existing do_kubernetes_cluster (1.23.14) fails #926

gladiatr72 opened this issue Feb 3, 2023 · 1 comment · Fixed by #1058

Comments

@gladiatr72
Copy link

Bug Report


Describe the bug

according to DO, adding HA backplane functionality is supported post kube 1.21. It works from the web console; however, the plan after adding ha = true to an existing cluster indicates a destroy/create cycle would be necessary. It appears the effort to support ha as a valid on-create parameter might pre-date DO's support for enabling HA post-creation.

Affected Resource(s)

  • digitalocean_kubernetes_cluster

Expected Behavior

applying a plan with a newly truthful ha parameter would provide a non-destructive update

Terraform Configuration Files


  resource digitalocean_kubernetes_cluster cluster {
    name    = "do-2"
    region  = var.do_region
    version = "1.23.14-do.0"

    ha = true /* post creation setting */

    node_pool {
      name       = "default-node-pool"
      size       = "s-2vcpu-4gb"
      node_count = 4
    }
  }

Terraform version

Terraform v0.15.5 on linux_amd64

  • provider registry.terraform.io/digitalocean/digitalocean v2.26.0
@maiku1008
Copy link

maiku1008 commented Oct 26, 2023

Any news on this? It would actually be very helpful.

The workaround is to:

  • Add HA from the web console.
  • in the terraform code, change ha to true.
  • run terraform refresh to update the state file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants