How to use field selectors for PODs? #136
-
I am new to Python and this module, so please bare with me... I am trying to get a list of pods in Running state and can't figure out proper way to use field selector running_selector = "status.phase=Running" ...the above doesn't seem to work, is anyone able to help? |
Beta Was this translation helpful? Give feedback.
Answered by
bradmwilliams
Dec 12, 2022
Replies: 1 comment
-
Hi @zdrux, running_selector = {"status.phase": "Running"} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zdrux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @zdrux,
You are not too far off actually! This issue is that
running_selector
should be a dict: