Add `airflow_kpo_in_cluster` label to KPO pods (#24658)
authorJed Cunningham <66968678+jedcunningham@users.noreply.github.com>
Tue, 28 Jun 2022 15:30:02 +0000 (09:30 -0600)
committerGitHub <noreply@github.com>
Tue, 28 Jun 2022 15:30:02 +0000 (09:30 -0600)
commit5326da4b83ed4405553e88d5d5464508256498d0
tree16765200e7403efbf1922759f357fda48a0f4aea
parent8f638bbeb9d3591a4e3c3000a542ae8edb58fb26
Add `airflow_kpo_in_cluster` label to KPO pods (#24658)

This allows one to determine if the pod was created with in_cluster config
or not, both on the k8s side and in pod_mutation_hooks.
airflow/providers/cncf/kubernetes/hooks/kubernetes.py
airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
kubernetes_tests/test_kubernetes_pod_operator.py
kubernetes_tests/test_kubernetes_pod_operator_backcompat.py
tests/providers/cncf/kubernetes/hooks/test_kubernetes.py
tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py