cmd.Flags().BoolVarP(&flags.nonInteractiveMode,"yes","y",flags.nonInteractiveMode,"Perform the upgrade and do not prompt for confirmation (non-interactive mode).")
cmd.Flags().BoolVarP(&flags.force,"force","f",flags.force,"Force upgrading although some requirements might not be met. This also implies non-interactive mode.")
cmd.Flags().BoolVar(&flags.dryRun,"dry-run",flags.dryRun,"Do not change any state, just output what actions would be performed.")
cmd.Flags().BoolVar(&flags.etcdUpgrade,"etcd-upgrade",flags.etcdUpgrade,"Perform the upgrade of ETCD.")
cmd.Flags().DurationVar(&flags.imagePullTimeout,"image-pull-timeout",flags.imagePullTimeout,"The maximum amount of time to wait for the control plane pods to be downloaded.")
returncmd
...
...
@@ -222,7 +225,7 @@ func PerformControlPlaneUpgrade(flags *applyFlags, client clientset.Interface, w
fmt.Printf("[upgrade/apply] Upgrading your Self-Hosted control plane to version %q...\n",flags.newK8sVersionStr)