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

Allow setting an arbitrary name for the copied Secret resource #271

Open
HontoNoRoger opened this issue Apr 28, 2023 · 1 comment
Open

Comments

@HontoNoRoger
Copy link

Is your feature request related to a problem? Please describe.
When dealing with Secrets which you cannot name freely (such as generated ones from some Operator), it is hard to establish a proper naming scheme in a different namespace sometimes. Especially if you have to strip the labels of the copied Secret.

Describe the solution you'd like
I'd like to be able to set a specific target Secret name for push-based replications, so that the copied Secret name differs from the source Secret name.
E.g. by adding another annotation to the source Secret like

replicator.v1.mittwald.de/replicate-target-name: "my-awesome-secret-from-source-namespace"

the target Secret would be created with the name specified in the source's annotation.

Based on the annotations on both the source and the target Secret, the link between them is still clear and doesn't have to match the name of the resource.

Describe alternatives you've considered
Using a pull-based approach does offer choosing a free name for the copied Secret, however it involves creating an empty Secret in the first place, additionally annotating the source Secret to allow replication.

@timharris777
Copy link

This would be useful. +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants