Skip to content

Commit

Permalink
Merge pull request #10203 from stmcginnis/clusterctl-default-wc
Browse files Browse the repository at this point in the history
🌱 clusterctl: Add 0 default to worker-machine-count help
  • Loading branch information
k8s-ci-robot committed Feb 27, 2024
2 parents 219e438 + 600f526 commit 9132d80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/clusterctl/cmd/generate_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ func init() {
"The Kubernetes version to use for the workload cluster. If unspecified, the value from OS environment variables or the $XDG_CONFIG_HOME/cluster-api/clusterctl.yaml config file will be used.")
generateClusterClusterCmd.Flags().Int64Var(&gc.controlPlaneMachineCount, "control-plane-machine-count", 1,
"The number of control plane machines for the workload cluster.")
// Remove default from hard coded text if the default is ever changed from 0 since cobra would then add it
generateClusterClusterCmd.Flags().Int64Var(&gc.workerMachineCount, "worker-machine-count", 0,
"The number of worker machines for the workload cluster.")
"The number of worker machines for the workload cluster. (default 0)")

// flags for the repository source
generateClusterClusterCmd.Flags().StringVarP(&gc.infrastructureProvider, "infrastructure", "i", "",
Expand Down

0 comments on commit 9132d80

Please sign in to comment.