ansible / awx-operator

An Ansible AWX operator for Kubernetes built with Operator SDK and Ansible. 🤖
https://www.github.com/ansible/awx
Apache License 2.0
1.17k stars 587 forks source link

node assignment configs are attached on all k8s workloads #1853

Open ranvit opened 3 weeks ago

ranvit commented 3 weeks ago
SUMMARY

The db migration pod and the backup process pod have failed to schedule on a k8s cluster where every node has a taint. So this PR adds the task_* related node-assignment params and the global node-assignment params as fallback to every k8s workload that didn't have node-assignment configuration available on them.

This fixes issues like #1774

ISSUE TYPE
ADDITIONAL INFORMATION

I PR'd a similar fix with https://github.com/ansible/awx-operator/pull/1804, only targeting the migration pod. Realised I need somethign similar on the backup pod.

The task_* params seem well suited for most of the k8s workloads except for the mesh-ingress deployment, so I had that only use the global params