-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement annotation replicator.v1.mittwald.de/strip-labels #155
Conversation
7ab98b5
to
0d73239
Compare
0d73239
to
6cf126c
Compare
Hi @hensur , if you find some time for review this, it would be great! |
7e07b4a
to
19a1d18
Compare
Hi @hensur thanks for taking a feedback. Sorry for doing a lot of copypasta, sometime I do not have the full understanding of golang. I do a commit for each of you comments/suggestions. I hope you can quicker followup the changes that I do, to validate them. Let me know, if I should do a rebase/squash. |
Hey @jkroepke, Don't worry, sometimes I don't have that understanding either :) |
Hi again,
this PR add a new feature to mittwald/kubernetes-replicator.
Motivation of this change:
Operators like /~https://github.com/strimzi/strimzi-kafka-operator implements an own garbage collection based on specific labels defined on resources. If mittwald replicator replicate secrets to different namespace, the strimzi-kafka-operator will remove the replicated secrets because from operators point of view the secret is a left-over. To mitigate the issue, set the annotation replicator.v1.mittwald.de/strip-labels=true to remove all labels on the replicated resource.
Fixes #151