diff --git a/cmd/kubeadm/app/cmd/options/constant.go b/cmd/kubeadm/app/cmd/options/constant.go index acb51ecd55..f966750e05 100644 --- a/cmd/kubeadm/app/cmd/options/constant.go +++ b/cmd/kubeadm/app/cmd/options/constant.go @@ -31,7 +31,7 @@ const APIServerExtraArgs = "apiserver-extra-args" // CertificatesDir flag sets the path where to save and read the certificates. const CertificatesDir = "cert-dir" -// CfgPath flag sets the path to kubeadm config file. WARNING: Usage of a configuration file is experimental. +// CfgPath flag sets the path to kubeadm config file. const CfgPath = "config" // ControllerManagerExtraArgs flag sets extra flags to pass to the Controller Manager or override default ones in form of =. diff --git a/cmd/kubeadm/app/cmd/options/generic.go b/cmd/kubeadm/app/cmd/options/generic.go index 3a08838b09..16f8f0c7aa 100644 --- a/cmd/kubeadm/app/cmd/options/generic.go +++ b/cmd/kubeadm/app/cmd/options/generic.go @@ -33,7 +33,7 @@ func AddKubeConfigDirFlag(fs *pflag.FlagSet, kubeConfigDir *string) { // AddConfigFlag adds the --config flag to the given flagset func AddConfigFlag(fs *pflag.FlagSet, cfgPath *string) { - fs.StringVar(cfgPath, CfgPath, *cfgPath, "Path to kubeadm config file (WARNING: Usage of a configuration file is experimental).") + fs.StringVar(cfgPath, CfgPath, *cfgPath, "Path to a kubeadm configuration file.") } // AddIgnorePreflightErrorsFlag adds the --ignore-preflight-errors flag to the given flagset diff --git a/cmd/kubeadm/app/cmd/phases/markcontrolplane.go b/cmd/kubeadm/app/cmd/phases/markcontrolplane.go index eac8a1ed4f..37dd80564d 100644 --- a/cmd/kubeadm/app/cmd/phases/markcontrolplane.go +++ b/cmd/kubeadm/app/cmd/phases/markcontrolplane.go @@ -50,6 +50,7 @@ func NewMarkControlPlanePhase() workflow.Phase { Example: markControlPlaneExample, InheritFlags: []string{ options.NodeName, + options.CfgPath, }, Run: runMarkControlPlane, }