flagSet.StringVar(featureGatesString,"feature-gates",*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. "+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
packageoptions
// APIServerAdvertiseAddress flag sets the IP address the API Server will advertise it's listening on. Specify '0.0.0.0' to use the address of the default network interface.
// APIServerBindPort flag sets the port for the API Server to bind to.
constAPIServerBindPort="apiserver-bind-port"
// APIServerCertSANs flag sets extra Subject Alternative Names (SANs) to use for the API Server serving certificate. Can be both IP addresses and DNS names.
// DryRun flag instruct kubeadm to don't apply any changes; just output what would be done.
constDryRun="dry-run"
// FeatureGatesString flag sets key=value pairs that describe feature gates for various features.
constFeatureGatesString="feature-gates"
// IgnorePreflightErrors sets the path a list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks.
// KubeconfigDir flag sets the path where to save the kubeconfig file.
constKubeconfigDir="kubeconfig-dir"
// KubeconfigPath flag sets the kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations are searched for an existing KubeConfig file.
constKubeconfigPath="kubeconfig"
// KubernetesVersion flag sets the Kubernetes version for the control plane.
constKubernetesVersion="kubernetes-version"
// NetworkingDNSDomain flag sets the domain for services, e.g. "myorg.internal".
constNetworkingDNSDomain="service-dns-domain"
// NetworkingServiceSubnet flag sets the range of IP address for service VIPs.
constNetworkingServiceSubnet="service-cidr"
// NetworkingPodSubnet flag sets the range of IP addresses for the pod network. If set, the control plane will automatically allocate CIDRs for every node.
constNetworkingPodSubnet="pod-network-cidr"
// NodeCRISocket flag sets the CRI socket to connect to.
constNodeCRISocket="cri-socket"
// NodeName flag sets the node name.
constNodeName="node-name"
// SchedulerExtraArgs flag sets extra flags to pass to the Scheduler or override default ones in form of <flagname>=<value>".
constSchedulerExtraArgs="scheduler-extra-args"
// SkipTokenPrint flag instruct kubeadm to skip printing of the default bootstrap token generated by 'kubeadm init'.
fs.StringVar(kubeConfigFile,"kubeconfig",*kubeConfigFile,"The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations are searched for an existing KubeConfig file.")
fs.StringVar(kubeConfigFile,KubeconfigPath,*kubeConfigFile,"The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations are searched for an existing KubeConfig file.")
}
// AddKubeConfigDirFlag adds the --kubeconfig-dir flag to the given flagset
fs.Var(utilflag.NewMapStringString(apiServerExtraArgs),APIServerExtraArgs,"A set of extra flags to pass to the API Server or override default ones in form of <flagname>=<value>")
fs.Var(utilflag.NewMapStringString(controllerManagerExtraArgs),ControllerManagerExtraArgs,"A set of extra flags to pass to the Controller Manager or override default ones in form of <flagname>=<value>")
fs.Var(utilflag.NewMapStringString(schedulerExtraArgs),SchedulerExtraArgs,"A set of extra flags to pass to the Scheduler or override default ones in form of <flagname>=<value>")