mittwald / kubernetes-replicator

Kubernetes controller for synchronizing secrets & config maps across namespaces
Apache License 2.0
866 stars 100 forks source link

Replicate annotations #313

Open fiksn opened 9 months ago

fiksn commented 9 months ago

It appears this was delibrately omited, but there are some use-cases where you need to copy over existing annotations too. The only problem is that if replicator.v1.mittwald.de/* annotations were copied this could create an infinite loop. So the logic is to skip all annotations with that prefix.

There is also a new replicator.v1.mittwald.de/strip-annotations annotation added using which kubernetes-replicator behaves the same way as before. Without that it copies everything (beside the mentioned "internal annotations").

Fixes https://github.com/mittwald/kubernetes-replicator/issues/286

oubeichen commented 8 months ago

+1

pbikki commented 2 months ago

any plans on merging this ? we need this feature as well