flagSet.StringVar(featureGatesString,"feature-gates",*featureGatesString,"A set of key=value pairs that describe feature gates for various features. "+
...
...
@@ -276,8 +276,10 @@ type Init struct {
// Run executes master node provisioning, including certificates, needed static pod manifests, etc.
func(i*Init)Run(outio.Writer)error{
// Write env file with flags for the kubelet to use
// If we're dry-running; we should create a faked client that answers some GETs in order to be able to do the full init flow and just logs the rest of requests
cmd.Flags().StringVar(&cfg.NodeName,"node-name",cfg.NodeName,`The node name that should be used for the kubelet client certificate`)
cmd.Flags().StringVar(&cfg.NodeRegistration.Name,"node-name",cfg.NodeRegistration.Name,`The node name that should be used for the kubelet client certificate`)
}
ifproperties.use=="user"{
cmd.Flags().StringVar(&token,"token",token,"The token that should be used as the authentication mechanism for this kubeconfig, instead of client certificates")
fmt.Printf("[kubelet] Creating a ConfigMap %q in namespace %s with the configuration for the kubelets in the cluster\n",configMapName,metav1.NamespaceSystem)
fmt.Printf("[kubelet] Enabling Dynamic Kubelet Config for Node %q; config sourced from ConfigMap %q in namespace %s\n",
nodeName,configMapName,metav1.NamespaceSystem)
fmt.Println("[kubelet] WARNING: The Dynamic Kubelet Config feature is alpha and off by default. It hasn't been well-tested yet at this stage, use with caution.")
// Loop on every falsy return. Return with an error if raised. Exit successfully if true is returned.