Skip to content

Commit

Permalink
Merge pull request #10205 from k8s-infra-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-10203-to-release-1.6

[release-1.6] 🌱 clusterctl: Add 0 default to worker-machine-count help
  • Loading branch information
k8s-ci-robot authored Feb 27, 2024
2 parents da795db + da3063b commit 9bf1638
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 9bf1638

Please sign in to comment.