Open jc305697 opened 1 year ago
Any news on this? I faced exactly the same issue.
Same here, wil this be fixed?
The same request, will any updates?
Of course theres workaround to use cli command:
kubectl label node <label_key>=<label_value> -l <label_selector>
But it's not an Ansible way
SUMMARY
Hello, I have a weird problem and I hope somebody will be able to help me :) . If I only use label_selectors with k8s, it finds nothing but the same label_selectors if used with k8s_info finds the Nodes with this label.
I couldn't find an issue that covers this topic and any answers online in my research. Cheers, jc305697
ISSUE TYPE
COMPONENT NAME
k8s
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
workstation OS: Ubuntu 22.04.2 LTS (Jammy Jellyfish) target: OpenShift Cluster 4.12.11
STEPS TO REPRODUCE
EXPECTED RESULTS
All worker nodes should have the following label applied to them: cluster.ocs.openshift.io/openshift-storage: ''
ACTUAL RESULTS
The specified label is not applied on the worker nodes since it seems that the module k8s finds no Node ressources matching the label selector but the k8s_info module finds nodes matching the label_selector.