Skip to content

Commit ab70dba

Browse files
authored
k8s/doctl: remove ha flag from update command (#1040)
1 parent 0b8dffd commit ab70dba

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

commands/kubernetes.go

-8
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,6 @@ This command updates the specified configuration values for the specified Kubern
322322
"Boolean specifying whether to enable surge-upgrade for the cluster")
323323
AddBoolFlag(cmdKubeClusterUpdate, doctl.ArgClusterUpdateKubeconfig, "",
324324
true, "Boolean specifying whether to update the cluster in your kubeconfig")
325-
AddBoolFlag(cmdKubeClusterUpdate, doctl.ArgHA, "", false,
326-
"Boolean specifying whether to enable the highly-available control plane for the cluster")
327325
AddBoolFlag(cmdKubeClusterUpdate, doctl.ArgSetCurrentContext, "", true,
328326
"Boolean specifying whether to set the current kubectl context to that of the new cluster")
329327
AddStringFlag(cmdKubeClusterUpdate, doctl.ArgMaintenanceWindow, "", "any=00:00",
@@ -1676,12 +1674,6 @@ func buildClusterUpdateRequestFromArgs(c *CmdConfig, r *godo.KubernetesClusterUp
16761674
}
16771675
r.SurgeUpgrade = surgeUpgrade
16781676

1679-
ha, err := c.Doit.GetBool(c.NS, doctl.ArgHA)
1680-
if err != nil {
1681-
return err
1682-
}
1683-
r.HA = ha
1684-
16851677
return nil
16861678
}
16871679

commands/kubernetes_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,6 @@ func TestKubernetesUpdate(t *testing.T) {
549549
Day: godo.KubernetesMaintenanceDayAny,
550550
},
551551
AutoUpgrade: boolPtr(false),
552-
HA: true,
553552
}
554553
tm.kubernetes.EXPECT().Update(testCluster.ID, &r).Return(&testCluster, nil)
555554

@@ -558,7 +557,6 @@ func TestKubernetesUpdate(t *testing.T) {
558557
config.Doit.Set(config.NS, doctl.ArgTag, testCluster.Tags)
559558
config.Doit.Set(config.NS, doctl.ArgMaintenanceWindow, "any=00:00")
560559
config.Doit.Set(config.NS, doctl.ArgAutoUpgrade, false)
561-
config.Doit.Set(config.NS, doctl.ArgHA, true)
562560

563561
err := testK8sCmdService().RunKubernetesClusterUpdate(config)
564562
assert.NoError(t, err)

0 commit comments

Comments
 (0)