mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #112272 from chendave/cleanupflags
kubeadm: using the existing exported method to add config flag
This commit is contained in:
commit
4b9575acb8
@ -286,10 +286,7 @@ func addJoinConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1.JoinConfigurati
|
|||||||
|
|
||||||
// addJoinOtherFlags adds join flags that are not bound to a configuration file to the given flagset
|
// addJoinOtherFlags adds join flags that are not bound to a configuration file to the given flagset
|
||||||
func addJoinOtherFlags(flagSet *flag.FlagSet, joinOptions *joinOptions) {
|
func addJoinOtherFlags(flagSet *flag.FlagSet, joinOptions *joinOptions) {
|
||||||
flagSet.StringVar(
|
options.AddConfigFlag(flagSet, &joinOptions.cfgPath)
|
||||||
&joinOptions.cfgPath, options.CfgPath, joinOptions.cfgPath,
|
|
||||||
"Path to kubeadm config file.",
|
|
||||||
)
|
|
||||||
flagSet.StringSliceVar(
|
flagSet.StringSliceVar(
|
||||||
&joinOptions.ignorePreflightErrors, options.IgnorePreflightErrors, joinOptions.ignorePreflightErrors,
|
&joinOptions.ignorePreflightErrors, options.IgnorePreflightErrors, joinOptions.ignorePreflightErrors,
|
||||||
"A list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks.",
|
"A list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks.",
|
||||||
|
Loading…
Reference in New Issue
Block a user