We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to filter a list of pods based on the node they're on:
podList, err := clientset.CoreV1().Pods("").List(context.Background(), metav1.ListOptions{ FieldSelector: fmt.Sprintf("spec.nodeName=%s", nodeName), })
but the FieldSelector doesn't appear to be filtering them properly. I'm currently working around this by doing:
for _, pod := range podList.Items { if pod.Spec.NodeName == nodeName { # Take action here } }
slack thread: https://kubernetes.slack.com/archives/C0EG7JC6T/p1713547391787689?thread_ts=1713212213.662529&cid=C0EG7JC6T
The text was updated successfully, but these errors were encountered:
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
lifecycle/rotten
You can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
Sorry, something went wrong.
No branches or pull requests
I'm trying to filter a list of pods based on the node they're on:
but the FieldSelector doesn't appear to be filtering them properly. I'm currently working around this by doing:
slack thread: https://kubernetes.slack.com/archives/C0EG7JC6T/p1713547391787689?thread_ts=1713212213.662529&cid=C0EG7JC6T
The text was updated successfully, but these errors were encountered: