Skip to content
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

Merged
merged 5 commits into from
Nov 25, 2021

Conversation

jkroepke
Copy link
Contributor

@jkroepke jkroepke commented Nov 18, 2021

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

@jkroepke jkroepke changed the title Strip labels Implement annotation replicator.v1.mittwald.de/strip-labels Nov 18, 2021
@jkroepke jkroepke marked this pull request as ready for review November 18, 2021 08:34
@jkroepke
Copy link
Contributor Author

Hi @hensur , if you find some time for review this, it would be great!

@jkroepke
Copy link
Contributor Author

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.

@hensur hensur merged commit 22a6795 into mittwald:master Nov 25, 2021
@hensur
Copy link
Member

hensur commented Nov 25, 2021

Hey @jkroepke,
I just squashed and merged your changes.

Don't worry, sometimes I don't have that understanding either :)

@jkroepke jkroepke deleted the strip-labels branch November 25, 2021 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support removing labels upon replication
2 participants