mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
kubeadm: using the existing exported method to add config flag
Signed-off-by: Dave Chen <dave.chen@arm.com>
This commit is contained in:
parent
cba0dcecc9
commit
6675bea8a2
@ -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
|
||||
func addJoinOtherFlags(flagSet *flag.FlagSet, joinOptions *joinOptions) {
|
||||
flagSet.StringVar(
|
||||
&joinOptions.cfgPath, options.CfgPath, joinOptions.cfgPath,
|
||||
"Path to kubeadm config file.",
|
||||
)
|
||||
options.AddConfigFlag(flagSet, &joinOptions.cfgPath)
|
||||
flagSet.StringSliceVar(
|
||||
&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.",
|
||||
|
Loading…
Reference in New Issue
Block a user