Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
Co-authored-by: stephybun <steph@hashicorp.com>
  • Loading branch information
aristosvo and stephybun committed Jun 23, 2023
1 parent 377371a commit 2ef2f75
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/services/containers/kubernetes_cluster_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,7 @@ func resourceKubernetesClusterCreate(d *pluginsdk.ResourceData, meta interface{}
}
maintenanceId := maintenanceconfigurations.NewMaintenanceConfigurationID(id.SubscriptionId, id.ResourceGroupName, id.ManagedClusterName, "aksManagedAutoUpgradeSchedule")
if _, err := client.CreateOrUpdate(ctx, maintenanceId, parameters); err != nil {
return fmt.Errorf("creating/updating aksManagedAutoUpgradeSchedule maintenance config for %s: %+v", id, err)
return fmt.Errorf("creating/updating auto upgrade schedule maintenance config for %s: %+v", id, err)
}
}

Expand All @@ -1797,7 +1797,7 @@ func resourceKubernetesClusterCreate(d *pluginsdk.ResourceData, meta interface{}
}
maintenanceId := maintenanceconfigurations.NewMaintenanceConfigurationID(id.SubscriptionId, id.ResourceGroupName, id.ManagedClusterName, "aksManagedNodeOSUpgradeSchedule")
if _, err := client.CreateOrUpdate(ctx, maintenanceId, parameters); err != nil {
return fmt.Errorf("creating/updating aksManagedNodeOSUpgradeSchedule maintenance config for %s: %+v", id, err)
return fmt.Errorf("creating/updating node os upgrade schedule maintenance config for %s: %+v", id, err)
}
}

Expand Down Expand Up @@ -2417,7 +2417,7 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{}
}
} else {
if _, err := client.Delete(ctx, maintenanceId); err != nil {
return fmt.Errorf("deleting Maintenance Configuration for Managed Kubernetes Cluster (%q): %+v", id, err)
return fmt.Errorf("deleting Maintenance Configuration for %s: %+v", id, err)
}
}
}
Expand All @@ -2431,11 +2431,11 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{}
Properties: maintenanceWindowProperties,
}
if _, err := client.CreateOrUpdate(ctx, maintenanceId, parameters); err != nil {
return fmt.Errorf("creating/updating aksManagedAutoUpgradeSchedule Maintenance Configuration for Managed Kubernetes Cluster (%q): %+v", id, err)
return fmt.Errorf("creating/updating Auto Upgrade Schedule Maintenance Configuration for %s: %+v", id, err)
}
} else {
if _, err := client.Delete(ctx, maintenanceId); err != nil {
return fmt.Errorf("deleting aksManagedAutoUpgradeSchedule Maintenance Configuration for Managed Kubernetes Cluster (%q): %+v", id, err)
return fmt.Errorf("deleting Auto Upgrade Schedule Maintenance Configuration for %s: %+v", id, err)
}
}
}
Expand All @@ -2449,11 +2449,11 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{}
Properties: maintenanceWindowProperties,
}
if _, err := client.CreateOrUpdate(ctx, maintenanceId, parameters); err != nil {
return fmt.Errorf("creating/updating aksManagedNodeOSUpgradeSchedule Maintenance Configuration for Managed Kubernetes Cluster (%q): %+v", id, err)
return fmt.Errorf("creating/updating Node OS Upgrade Schedule Maintenance Configuration for %s: %+v", id, err)
}
} else {
if _, err := client.Delete(ctx, maintenanceId); err != nil {
return fmt.Errorf("deleting aksManagedNodeOSUpgradeSchedule Maintenance Configuration for Managed Kubernetes Cluster (%q): %+v", id, err)
return fmt.Errorf("deleting Node OS Upgrade Schedule Maintenance Configuration for %s: %+v", id, err)
}
}
}
Expand Down

0 comments on commit 2ef2f75

Please sign in to comment.