You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to awx/main/scheduler/kubernetes.py overriding the .metadata.labels of the pods it creates (instead of merging them with the user-supplied pod_spec_override), features such as pod anti-affinity between AWX runners cannot work.
ENVIRONMENT
AWX version: 15.0.1 (also present in devel)
AWX install method: openshift
Ansible version: irrelevant
Operating System: Linux (all versions)
Web Browser: irrelevant
STEPS TO REPRODUCE
Create a Kubernetes container group with the below piece of YAML as the pod spec override
The pods run by AWX as part of the container group should contain both the custom labels and the affinity structure.
ACTUAL RESULTS
Only the affinity structure shows up in the Kind: pod Kubernetes objects, rendering the podAntiAffinity clause inoperative (for lack of a label to match on under metdata)
ISSUE TYPE
SUMMARY
Due to
awx/main/scheduler/kubernetes.py
overriding the.metadata.labels
of the pods it creates (instead of merging them with the user-suppliedpod_spec_override
), features such as pod anti-affinity between AWX runners cannot work.ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
The pods run by AWX as part of the container group should contain both the custom labels and the affinity structure.
ACTUAL RESULTS
Only the affinity structure shows up in the
Kind: pod
Kubernetes objects, rendering thepodAntiAffinity
clause inoperative (for lack of a label to match on undermetdata
)ADDITIONAL INFORMATION
The cause is the equals sign on this line.
The text was updated successfully, but these errors were encountered: