mirror of https://github.com/k3s-io/k3s
kubeadm: add missing --config flag to mark-control-plane phase
parent
94759c165f
commit
a1a7ecaab3
|
@ -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 <flagname>=<value>.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -50,6 +50,7 @@ func NewMarkControlPlanePhase() workflow.Phase {
|
|||
Example: markControlPlaneExample,
|
||||
InheritFlags: []string{
|
||||
options.NodeName,
|
||||
options.CfgPath,
|
||||
},
|
||||
Run: runMarkControlPlane,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue