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

Introduce "sync-by-content" flag, implemented for secrets and configmaps #352

Merged
merged 5 commits into from
Nov 6, 2024

Conversation

stippi2
Copy link
Contributor

@stippi2 stippi2 commented Oct 16, 2024

When this flag is enabled, the replicator will ignore the replicated-from-version annotation and always compare the contents of the target object to the source object and keep them in sync.

Fixes #349 for secrets and configmaps

- Optionally ignore the "replicated-from-version" annotation and always compare by contents
- Implemented for secrets and config maps
- Add test for secrets for the new feature
- Change secret tests to use fake.Clientset instead of running in whatever happened to be your active KUBECONFIG(!)
@stippi2 stippi2 marked this pull request as draft October 16, 2024 08:43
@stippi2 stippi2 changed the title Introduce "sync-by-content" flag, implemented for secrets Introduce "sync-by-content" flag, implemented for secrets and configmaps Oct 16, 2024
@stippi2 stippi2 marked this pull request as ready for review October 16, 2024 08:49
martin-helmich
martin-helmich previously approved these changes Nov 5, 2024
main.go Show resolved Hide resolved
@martin-helmich martin-helmich merged commit 018b323 into mittwald:master Nov 6, 2024
3 checks passed
@stippi
Copy link

stippi commented Nov 6, 2024

@martin-helmich Many thanks for merging!! Is a new release automatically triggered and I just have to be patient?

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.

Replication depends on "replicated-from-version", not on actual contents
3 participants