Skip to content

Commit

Permalink
Default to cpms on controlplane resize
Browse files Browse the repository at this point in the history
CPMS should be the default case now when this command is used, as clusters < 4.12 are EOL.
We keep the old way for edge cases, issues with CPMS or any leftover EOL
cluster
  • Loading branch information
RaphaelBut committed Dec 13, 2024
1 parent 285bb32 commit edcbec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cluster/resize/controlplane_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func newCmdResizeControlPlane() *cobra.Command {
resizeControlPlaneNodeCmd.Flags().StringVar(&ops.newMachineType, "machine-type", "", "The target AWS machine type to resize to (e.g. m5.2xlarge)")
resizeControlPlaneNodeCmd.Flags().StringVar(&ops.node, "node", "", "The control plane node to resize (e.g. ip-127.0.0.1.eu-west-2.compute.internal). Required when not using --cpms.")
resizeControlPlaneNodeCmd.Flags().StringVar(&ops.reason, "reason", "", "The reason for this command, which requires elevation, to be run (usualy an OHSS or PD ticket)")
resizeControlPlaneNodeCmd.Flags().BoolVar(&ops.cpms, "cpms", false, "Set this flag to leverage control plane machine sets to resize the control plane")
resizeControlPlaneNodeCmd.Flags().BoolVar(&ops.cpms, "cpms", true, "Set this flag to leverage control plane machine sets to resize the control plane")
resizeControlPlaneNodeCmd.MarkFlagRequired("cluster-id")
resizeControlPlaneNodeCmd.MarkFlagRequired("machine-type")
resizeControlPlaneNodeCmd.MarkFlagRequired("reason")
Expand Down

0 comments on commit edcbec6

Please sign in to comment.