mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
kubelet initial flag parse should normalize flags
This commit is contained in:
parent
ba535d57f6
commit
cd1717ea09
@ -104,6 +104,7 @@ const (
|
|||||||
// NewKubeletCommand creates a *cobra.Command object with default parameters
|
// NewKubeletCommand creates a *cobra.Command object with default parameters
|
||||||
func NewKubeletCommand() *cobra.Command {
|
func NewKubeletCommand() *cobra.Command {
|
||||||
cleanFlagSet := pflag.NewFlagSet(componentKubelet, pflag.ContinueOnError)
|
cleanFlagSet := pflag.NewFlagSet(componentKubelet, pflag.ContinueOnError)
|
||||||
|
cleanFlagSet.SetNormalizeFunc(flag.WordSepNormalizeFunc)
|
||||||
kubeletFlags := options.NewKubeletFlags()
|
kubeletFlags := options.NewKubeletFlags()
|
||||||
kubeletConfig, err := options.NewKubeletConfiguration()
|
kubeletConfig, err := options.NewKubeletConfiguration()
|
||||||
// programmer error
|
// programmer error
|
||||||
|
Loading…
Reference in New Issue
Block a user