// AddGlobalFlags explicitly registers flags that libraries (glog, verflag, etc.) register // against the global flagsets from "flag" and "github.com/spf13/pflag". // We do this in order to prevent unwanted flags from leaking into the Kubelet's flagset. func AddGlobalFlags(fs *pflag.FlagSet) { … } // normalize replaces underscores with hyphens // we should always use hyphens instead of underscores when registering kubelet flags func normalize(s string) string { … } // register adds a flag to local that targets the Value associated with the Flag named globalName in global func register(global *flag.FlagSet, local *pflag.FlagSet, globalName string) { … } // registerDeprecated registers the flag with register, and then marks it deprecated func registerDeprecated(global *flag.FlagSet, local *pflag.FlagSet, globalName, deprecated string) { … } // addCredentialProviderFlags adds flags from k8s.io/kubernetes/pkg/credentialprovider func addCredentialProviderFlags(fs *pflag.FlagSet) { … }