kubelet initial flag parse should normalize flags

This commit is contained in:
andrewsykim 2018-03-12 14:06:17 -04:00
parent ba535d57f6
commit cd1717ea09

View File

@ -104,6 +104,7 @@ const (
// NewKubeletCommand creates a *cobra.Command object with default parameters
func NewKubeletCommand() *cobra.Command {
cleanFlagSet := pflag.NewFlagSet(componentKubelet, pflag.ContinueOnError)
cleanFlagSet.SetNormalizeFunc(flag.WordSepNormalizeFunc)
kubeletFlags := options.NewKubeletFlags()
kubeletConfig, err := options.NewKubeletConfiguration()
// programmer error