fix bug of kubelet flag

This commit is contained in:
SataQiu 2019-10-14 14:28:02 +08:00
parent 376b0ae20e
commit 90db2a479d

View File

@ -416,7 +416,7 @@ func (f *KubeletFlags) AddFlags(mainfs *pflag.FlagSet) {
fs.BoolVar(&f.KeepTerminatedPodVolumes, "keep-terminated-pod-volumes", f.KeepTerminatedPodVolumes, "Keep terminated pod volumes mounted to the node after the pod terminates. Can be useful for debugging volume related issues.")
fs.MarkDeprecated("keep-terminated-pod-volumes", "will be removed in a future version")
fs.BoolVar(&f.EnableCAdvisorJSONEndpoints, "enable-cadvisor-json-endpoints", f.EnableCAdvisorJSONEndpoints, "Enable cAdvisor json /spec and /stats/* endpoints.")
fs.MarkDeprecated("enable-cadvisor-json-apis", "will be removed in a future version")
fs.MarkDeprecated("enable-cadvisor-json-endpoints", "will be removed in a future version")
}