-
Notifications
You must be signed in to change notification settings - Fork 60
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
Enhancement suggestion: Ability to select labels #321
Comments
Hi @SantoFantasy! I think it's a good idea, so an allow list of labels to sleep? This configuration should be cluster wide? Probably it could be more useful. Something like the CRD proposed here. At the moment, we support the match label selector only in the excludeRef: https://kube-green.dev/docs/apireference_v1alpha1/#kube-green.com/v1alpha1.ExcludeRef |
Hi Sadly, the excludeRef is not a viable option for my case. |
Hi, I think an includeRef:
- matchLabels:
kube-green.dev/include: true What do you think of that ? |
Yes, I think it would be interesting to add to the spec! |
I would love to see this feature / enhancement. |
There is the #445 which add the includeRef option! |
Suggestion: ability to select by label folowing this example:
Reasoning: When using the current configuration, the behavior is to put the entire cluster to sleep and we select the apps that we don't want to be shut down with the
excludeRef
. With a label selector, it's possible to fine tune more easily wich deployments are put to sleep, enabling easy adoption on large scale clusters and ensuring nothing critical is being turned off.The text was updated successfully, but these errors were encountered: