kube-capacity icon indicating copy to clipboard operation
kube-capacity copied to clipboard

Add support to exclude node labels

Open SimonBaeumer opened this issue 3 years ago • 2 comments

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.

SimonBaeumer avatar Oct 24 '22 15:10 SimonBaeumer

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

robscott avatar Jan 19 '23 06:01 robscott

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

yardenshoham avatar Jan 24 '23 21:01 yardenshoham