-
Notifications
You must be signed in to change notification settings - Fork 87
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
Comments
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? |
Makes sense, thank you! |
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. |
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). |
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.
The text was updated successfully, but these errors were encountered: