Skip to content

Commit 907d4c1

Browse files
authored
Merge pull request kubernetes#89381 from dashpole/comment_disable_readonly
Add comment explaining when to remove cadvisor json endpoints
2 parents 62108be + b4ed727 commit 907d4c1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cmd/kubelet/app/options/options.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ func (f *KubeletFlags) AddFlags(mainfs *pflag.FlagSet) {
416416
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.")
417417
fs.MarkDeprecated("keep-terminated-pod-volumes", "will be removed in a future version")
418418
fs.BoolVar(&f.EnableCAdvisorJSONEndpoints, "enable-cadvisor-json-endpoints", f.EnableCAdvisorJSONEndpoints, "Enable cAdvisor json /spec and /stats/* endpoints.")
419+
// TODO: Remove this flag in 1.20+. https://github.com/kubernetes/kubernetes/issues/68522
419420
fs.MarkDeprecated("enable-cadvisor-json-endpoints", "will be removed in a future version")
420421

421422
}

pkg/kubelet/cadvisor/cadvisor_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
_ "github.com/google/cadvisor/container/systemd/install"
3434

3535
// Register cloud info providers.
36-
// TODO(#76660): Remove this once the cAdvisor endpoints are removed.
36+
// TODO(#68522): Remove this in 1.20+ once the cAdvisor endpoints are removed.
3737
_ "github.com/google/cadvisor/utils/cloudinfo/aws"
3838
_ "github.com/google/cadvisor/utils/cloudinfo/azure"
3939
_ "github.com/google/cadvisor/utils/cloudinfo/gce"

0 commit comments

Comments
 (0)