hjacobs/kube-janitor

kube-janitor leaves behind replicaset relics

CookieComputing opened this issue · 4 comments

kube-janitor will leave behind an old replicaset when you edit the deployment for kube-janitor

Steps to reproduce:

  • kubectl apply -f deploy/
  • kubectl edit deploy kube-janitor
  • (some edit of the deployment)
  • kubectl get replicasets

@CookieComputing can you elaborate, e.g. by showing the output of above commands?

This is the normal behavior of a Deployment: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#deploymentspec-v1-apps (see revisionHistoryLimit).

@devkid that was my assumption, too.