diff --git a/kubernetes.go b/kubernetes.go index 1a416136..38c380a5 100644 --- a/kubernetes.go +++ b/kubernetes.go @@ -88,6 +88,9 @@ type KubernetesClusterUpdateRequest struct { MaintenancePolicy *KubernetesMaintenancePolicy `json:"maintenance_policy,omitempty"` AutoUpgrade *bool `json:"auto_upgrade,omitempty"` SurgeUpgrade bool `json:"surge_upgrade,omitempty"` + + // Convert cluster to run highly available control plane + HA *bool `json:"ha,omitempty"` } // KubernetesClusterDeleteSelectiveRequest represents a delete selective request to delete a cluster and it's associated resources. diff --git a/kubernetes_test.go b/kubernetes_test.go index 436eec71..6bc59941 100644 --- a/kubernetes_test.go +++ b/kubernetes_test.go @@ -766,6 +766,7 @@ func TestKubernetesClusters_Update(t *testing.T) { Tags: []string{"cluster-tag-1", "cluster-tag-2"}, VPCUUID: "880b7f98-f062-404d-b33c-458d545696f6", SurgeUpgrade: true, + HA: true, NodePools: []*KubernetesNodePool{ { ID: "8d91899c-0739-4a1a-acc5-deadbeefbb8a", @@ -804,7 +805,7 @@ func TestKubernetesClusters_Update(t *testing.T) { "cluster-tag-2" ], "vpc_uuid": "880b7f98-f062-404d-b33c-458d545696f6", - "ha": false, + "ha": true, "surge_upgrade": true, "node_pools": [ {