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

Adding labels to a secret #14

Closed
nooshin-mirzadeh opened this issue Oct 9, 2020 · 2 comments
Closed

Adding labels to a secret #14

nooshin-mirzadeh opened this issue Oct 9, 2020 · 2 comments

Comments

@nooshin-mirzadeh
Copy link

Hi,
Thanks for this nice work.
I am wondering is there a way to add a label to the secrets? It looks that we can add annotations, but not a label, am I right, or am I missing sth?

@marcsauter
Copy link
Contributor

Hi,
What's your use case for labels?
The annotation is to identify the secret as a secret from vault with corresponding path:

metadata:
  annotations:
    vault-secret: secret/team_linux/k8s/p1-k8s-management/appl-nightwatch-t1/nightwatch

@nooshin-mirzadeh
Copy link
Author

This is useful for working with operators for us. There are some operators need some secrets to be set for them with a specific labels (otherwise, they cannot find them). We would like to share the secret from vault with the label. (If we set the label manually, and run the sync job again, it overwrites the label to none)

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

No branches or pull requests

2 participants