UnsafeSkipCAVerification:true,// TODO: UnsafeSkipCAVerification: true needs to be set for validation to pass, but shouldn't be recommended as the default
UnsafeSkipCAVerification:true,// TODO: UnsafeSkipCAVerification: true needs to be set for validation to pass, but shouldn't be recommended as the default
flagSet.StringVar(featureGatesString,options.FeatureGatesString,*featureGatesString,"A set of key=value pairs that describe feature gates for various features. "+
flagSet.StringVar(featureGatesString,options.FeatureGatesString,*featureGatesString,"A set of key=value pairs that describe feature gates for various features. "+
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.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().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.")
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.")
// TODO: Register this flag in a generic place
cmd.Flags().StringVar(&flags.criSocket,"cri-socket",flags.criSocket,"Specify the CRI socket to connect to.")
// The CRI socket flag is deprecated here, since it should be taken from the NodeRegistrationOptions for the current
// node instead of the command line. This prevents errors by the users (such as attempts to use wrong CRI during upgrade).
"Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket.",