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

Export secrets based on secrets-label-selector OR secrets-annotation-selector #63

Open
d-honeybadger opened this issue Nov 30, 2020 · 4 comments

Comments

@d-honeybadger
Copy link

d-honeybadger commented Nov 30, 2020

The selectors for secrets, secrets-label-selector and secrets-annotation-selector, are currently ANDed. So, for example, if I wanted to export cert-manager secrets (with annotations) as well as some custom secrets, then I'd have to commit to using annotations only. Wondering if this is intentional as it seems natural to expect that one can mix and match label and annotation selectors.

@joe-elliott
Copy link
Owner

I wouldn't say this is intentional. When I first added annotation support I was thinking of it as a different "mode" and didn't really consider the case where you'd run them both at the same time.

Are you looking to OR the label and annotation selectors?

@d-honeybadger
Copy link
Author

Makes sense, thank you!
Turns out I can (and should) just use multiple label selectors, so this isn't a blocker for my particular case and can be closed.
Still think it would be nice to have or'ed label and annotation selectors, maybe in the next major verion in case people rely on the current way.

@joe-elliott
Copy link
Owner

Are you looking to OR the label and annotation selectors?

Heh, that is exactly what the title of the issue calls for :P

Yeah, I see wisdom in ORing them together. Hard to say who relies on the current behavior. I'll leave this open in case others would like to comment about their preferences.

@jenting
Copy link

jenting commented Dec 2, 2020

I had the OR scenario before is that if I want to monitor lots of certificates within one cert-exporter Deployment, some certificates are find and filter by label, the others are find and filter by annotation.

Right now, the only way to support this is to have 2 Deployments, one is filter by label, the other one is filter by annotation.

From my perspective, I can't think a scenario that user would like to use label and annotation by ANS operation (my 2 cents).

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

3 participants