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

Add ability to reflect whitelisted labels #464

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

valtaroth
Copy link

Following feature request #414 I added the option to have labels mirrored based on two new annotations, <prefix>/reflection-labels and <prefix>/reflection-labels-included.

By default the functionality stays exactly the same with just the content being mirrored. However, once <prefix>/reflection-labels is set to true the source labels will be included in the mirror. <prefix>/reflection-labels-included is a regex list like already used for namespace whitelisting which can be used to finely filter the labels to be mirrored, for example to only mirror labels prefixed with example.com/:

annotations:
  reflector.v1.k8s.emberstack.com/reflection-labels: "true"
  reflector.v1.k8s.emberstack.com/reflection-labels-included: "example\\.com/.*"

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

Successfully merging this pull request may close these issues.

1 participant