Skip to content

Commit

Permalink
Disable k8s version upgrade (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: Zulhilmi Zainudin <zulhfreelancer@gmail.com>
  • Loading branch information
zulh-civo and zulhfreelancer committed Sep 23, 2021
1 parent 79c7fc1 commit eb85e9c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions civo/resource_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,9 @@ func resourceKubernetesClusterUpdate(d *schema.ResourceData, m interface{}) erro
}

if d.HasChange("kubernetes_version") {
config.KubernetesVersion = d.Get("kubernetes_version").(string)
config.Region = apiClient.Region
// config.KubernetesVersion = d.Get("kubernetes_version").(string)
// config.Region = apiClient.Region
return fmt.Errorf("[ERR] Kubernetes version upgrade (%q attribute) is not supported yet", "kubernetes_version")
}

if d.HasChange("applications") {
Expand All @@ -442,7 +443,7 @@ func resourceKubernetesClusterUpdate(d *schema.ResourceData, m interface{}) erro
}

if d.HasChange("name") {
config.Applications = d.Get("name").(string)
config.Name = d.Get("name").(string)
config.Region = apiClient.Region
}

Expand Down

0 comments on commit eb85e9c

Please sign in to comment.