k8s/godo: remove ha field from update request (#484)

This commit is contained in:
Sun-Li Beatteay 2021-10-05 16:15:10 -04:00 committed by GitHub
parent 5e2d6e76be
commit be2493d130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -88,9 +88,6 @@ 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.

View File

@ -766,7 +766,6 @@ 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",
@ -805,7 +804,7 @@ func TestKubernetesClusters_Update(t *testing.T) {
"cluster-tag-2"
],
"vpc_uuid": "880b7f98-f062-404d-b33c-458d545696f6",
"ha": true,
"ha": false,
"surge_upgrade": true,
"node_pools": [
{