Skip to content

Commit

Permalink
remove gsk multi-node-pool feature validation when updating k8s resource
Browse files Browse the repository at this point in the history
  • Loading branch information
nvthongswansea committed Jan 2, 2025
1 parent 75c2526 commit 2cc7516
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions gridscale/resource_gridscale_k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,6 @@ func resourceGridscaleK8sCreate(d *schema.ResourceData, meta interface{}) error

func resourceGridscaleK8sUpdate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*gsclient.Client)
validator := &ResourceGridscaleK8sValidator{}
errorPrefix := fmt.Sprintf("update k8s (%s) resource -", d.Id())

labels := convSOStrings(d.Get("labels").(*schema.Set).List())
Expand All @@ -1042,15 +1041,10 @@ func resourceGridscaleK8sUpdate(d *schema.ResourceData, meta interface{}) error
}
currentTemplateUUID := d.Get("service_template_uuid")
templateRequested, err := deriveK8sTemplateFromResourceData(client, d)

if err != nil {
return fmt.Errorf("%s error: %v", errorPrefix, err)
}
err = validator.checkIfTemplateSupportsMultiNodePools(*templateRequested)

if err != nil {
return fmt.Errorf("%s error: %v", errorPrefix, err)
}
if templateRequested.Properties.ObjectUUID != currentTemplateUUID.(string) {
requestBody.PaaSServiceTemplateUUID = templateRequested.Properties.ObjectUUID
}
Expand Down

0 comments on commit 2cc7516

Please sign in to comment.