Skip to content

Commit

Permalink
Improve EKS node group desired_size error message (rancher#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaempf authored and edwin-bruurs committed Sep 22, 2023
1 parent 68c1124 commit 5c68ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rancher2/resource_rancher2_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func resourceRancher2ClusterCreate(d *schema.ResourceData, meta interface{}) err
newCluster := &Cluster{}
if cluster.EKSConfig != nil && !cluster.EKSConfig.Imported {
if !checkClusterEKSConfigV2NodeGroupsDesiredSize(cluster) {
return fmt.Errorf("[ERROR] can't create %s EKS cluster with node group desired_size = 0", cluster.Name)
return fmt.Errorf("[ERROR] can't create %s EKS cluster with node group desired_size = 0. desired_size must be >=1. After initial provisioning, desired_size may be scaled down to 0 at any time", cluster.Name)
}
clusterStr, _ := interfaceToJSON(cluster)
clusterMap, _ := jsonToMapInterface(clusterStr)
Expand Down

0 comments on commit 5c68ec9

Please sign in to comment.