Configure which labels are removed
Opened this issue · 2 comments
foriequal0 commented
Add annotations to the service like this pod-graceful-drain/patchLabels: removethis-,setthis=other
ajaykumarmandapati commented
Thanks for this brilliant work! @foriequal0 However we were wondering can this be achieved for the current release? i.e. we do not want to remove certain labels during the termination phase of the pod. Thanks!
foriequal0 commented
@ajaykumarmandapati Hi! I currently don't have a concrete plan to implement this, and I'm a little bit busy for now.
Also, such options have a lot of choice of implementation. I need more concrete use-cases since I want to make this controller simple as possible.
I think you could try to retain labels with an another mutating admission controller such as Kyverno.