@@ -56,6 +56,7 @@ const (
5656 ClusterStatusPending ClusterStatus = "pending"
5757 ClusterStatusAvailable ClusterStatus = "available"
5858 ClusterStatusDeleting ClusterStatus = "deleting"
59+ ClusterStatusFailed ClusterStatus = "failed"
5960)
6061
6162type NodeGroup struct {
@@ -94,6 +95,7 @@ const (
9495 NodeGroupStatusPending NodeGroupStatus = "pending"
9596 NodeGroupStatusAvailable NodeGroupStatus = "available"
9697 NodeGroupStatusDeleting NodeGroupStatus = "deleting"
98+ NodeGroupStatusFailed NodeGroupStatus = "failed"
9799)
98100
99101type CreateClusterArgs struct {
@@ -102,7 +104,6 @@ type CreateClusterArgs struct {
102104 VPCID CloudProviderResourceID
103105 SubnetIDs []CloudProviderResourceID
104106 KubernetesVersion string
105- Location string
106107 Tags Tags
107108}
108109
@@ -194,9 +195,6 @@ func ValidateCreateKubernetesCluster(ctx context.Context, client CloudMaintainKu
194195 if cluster .RefID != attrs .RefID {
195196 return nil , fmt .Errorf ("cluster refID does not match create args: '%s' != '%s'" , cluster .RefID , attrs .RefID )
196197 }
197- if cluster .Location != attrs .Location {
198- return nil , fmt .Errorf ("cluster location does not match create args: '%s' != '%s'" , cluster .Location , attrs .Location )
199- }
200198 if cluster .KubernetesVersion != attrs .KubernetesVersion {
201199 return nil , fmt .Errorf ("cluster KubernetesVersion does not match create args: '%s' != '%s'" , cluster .KubernetesVersion , attrs .KubernetesVersion )
202200 }
0 commit comments