mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
add comment explaining when to remove the --enable-cadvisor-json-endpoints
This commit is contained in:
parent
8508875e4d
commit
b4ed7273da
@ -416,6 +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.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.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.BoolVar(&f.EnableCAdvisorJSONEndpoints, "enable-cadvisor-json-endpoints", f.EnableCAdvisorJSONEndpoints, "Enable cAdvisor json /spec and /stats/* endpoints.")
|
||||||
|
// TODO: Remove this flag in 1.20+. https://github.com/kubernetes/kubernetes/issues/68522
|
||||||
fs.MarkDeprecated("enable-cadvisor-json-endpoints", "will be removed in a future version")
|
fs.MarkDeprecated("enable-cadvisor-json-endpoints", "will be removed in a future version")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ import (
|
|||||||
_ "github.com/google/cadvisor/container/systemd/install"
|
_ "github.com/google/cadvisor/container/systemd/install"
|
||||||
|
|
||||||
// Register cloud info providers.
|
// Register cloud info providers.
|
||||||
// TODO(#76660): Remove this once the cAdvisor endpoints are removed.
|
// TODO(#68522): Remove this in 1.20+ once the cAdvisor endpoints are removed.
|
||||||
_ "github.com/google/cadvisor/utils/cloudinfo/aws"
|
_ "github.com/google/cadvisor/utils/cloudinfo/aws"
|
||||||
_ "github.com/google/cadvisor/utils/cloudinfo/azure"
|
_ "github.com/google/cadvisor/utils/cloudinfo/azure"
|
||||||
_ "github.com/google/cadvisor/utils/cloudinfo/gce"
|
_ "github.com/google/cadvisor/utils/cloudinfo/gce"
|
||||||
|
Loading…
Reference in New Issue
Block a user