Closed mike-lloyd03 closed 2 years ago
@mike-lloyd03 Could you clarify if you are using the community.okd.k8s module or the kubernetes.core.k8s module? Also, which version of the collection you are using?
ansible-galaxy collections list
actually shows both collections. So calling kubernetes.core.k8s
appears to be the answer. Your question seems to have answered my question.
Summary
I was redirected here by ansibot from https://github.com/ansible/ansible/issues/79255.
When attempting to use the
label_selectors
parameter with thek8s
module as per the docs, I get an error message stating that the parameter is unsupported.Issue Type
Bug Report
Component Name
k8s
Ansible Version
OS / Environment
Linux 5.19.3-arch1-1 x86_64 running inside a QEMU VM on a Mac running macOS 12.5.1
Steps to Reproduce
I am attempting to delete all pods with a specific label:
Using the k8s_info module as a workaround is successful:
Expected Results
All pods with the specified labels are deleted.
Actual Results