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

kube-capacity ignores some repeated filter arguments #158

Open
frankjkelly opened this issue Aug 12, 2024 · 0 comments
Open

kube-capacity ignores some repeated filter arguments #158

frankjkelly opened this issue Aug 12, 2024 · 0 comments

Comments

@frankjkelly
Copy link

I am trying to AND conditions but I noticed that when I provide two --node-labels arguments it only pays attention to the last ne

$ kube-capacity --node-labels karpenter.sh/nodepool=karpenter-pulsar-node-karpenter-node --sort cpu.util  | wc -l
      31
$ kube-capacity --node-labels beta.kubernetes.io/instance-type=c6a.8xlarge --util --sort cpu.util  | wc -l
      49
$ kube-capacity --node-labels karpenter.sh/nodepool=karpenter-pulsar-node-karpenter-node --node-labels beta.kubernetes.io/instance-type=c6a.8xlarge --util --sort cpu.util  | wc -l
      49
$ kube-capacity --node-labels beta.kubernetes.io/instance-type=c6a.8xlarge --util --node-labels karpenter.sh/nodepool=karpenter-pulsar-node-karpenter-node --sort cpu.util  | wc -l
      31

Probably the documentation should be adjusted to clarify or perhaps the command line should reject it or warn?

@frankjkelly frankjkelly changed the title kube-capacity ignores repeated arguments kube-capacity ignores some repeated filter arguments Aug 12, 2024
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

No branches or pull requests

1 participant