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 support to exclude node labels #72

Open
SimonBaeumer opened this issue Oct 24, 2022 · 2 comments
Open

Add support to exclude node labels #72

SimonBaeumer opened this issue Oct 24, 2022 · 2 comments

Comments

@SimonBaeumer
Copy link

Currently it is possible to filter node labels with --node-labels.
In reality some nodes have two labels like node-role.kubernetes.io/worker and node-role.kubernetes.io/infra.
To exclude a node with a second label I would like to propose a feature to exclude labels with --exclude-node-labels.

@robscott
Copy link
Owner

This is a great idea, thanks @SimonBaeumer! Sadly I don't have time to take this on but would welcome any PRs.

@yardenshoham
Copy link
Contributor

@SimonBaeumer how about kube-capacity --node-labels 'node-role.kubernetes.io/worker,!node-role.kubernetes.io/infra'?

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

Successfully merging a pull request may close this issue.

3 participants