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,options.DryRun,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().BoolVar(&flags.renewCerts,"certificate-renewal",flags.renewCerts,"Perform the renewal of certificates used by component changed during upgrades.")
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.")
// The CRI socket flag is deprecated here, since it should be taken from the NodeRegistrationOptions for the current
...
...
@@ -231,7 +234,7 @@ func PerformControlPlaneUpgrade(flags *applyFlags, client clientset.Interface, w
}
// Don't save etcd backup directory if etcd is HA, as this could cause corruption
cmd.Flags().BoolVar(&flags.dryRun,options.DryRun,flags.dryRun,"Do not change any state, just output the actions that would be performed.")
cmd.Flags().BoolVar(&flags.etcdUpgrade,"etcd-upgrade",flags.etcdUpgrade,"Perform the upgrade of etcd.")
cmd.Flags().BoolVar(&flags.renewCerts,"certificate-renewal",flags.renewCerts,"Perform the renewal of certificates used by component changed during upgrades.")