j-y-matsubara edited a comment on issue #8965:
URL: https://github.com/apache/airflow/issues/8965#issuecomment-640354651
Can't make a decision using the label?
For example,
Pseudo code:
```
def pod_mutation_hook:
if pod.labels['kubernetes_pod_operator']== 'True':
pod.annotations['pod-type'] = 'kubernetes-executor-worker-pod'
else:
pod.annotations['pod-type'] = 'pod-operator-pod'
```
The pod object have info like this:
labels: {'airflow_version': '1.10.10', 'kubernetes_pod_operator': 'True'}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]