pgagnon commented on a change in pull request #4648: [AIRFLOW-3274] Add
run_as_user and fs_group options for Kubernetes
URL: https://github.com/apache/airflow/pull/4648#discussion_r264018888
##########
File path: airflow/contrib/kubernetes/worker_configuration.py
##########
@@ -232,6 +232,11 @@ def make_pod(self, namespace, worker_uuid, pod_id,
dag_id, task_id, execution_da
affinity = kube_executor_config.affinity or
self.kube_config.kube_affinity
tolerations = kube_executor_config.tolerations or
self.kube_config.kube_tolerations
+ security_context = {
+ 'run_as_user': self.kube_config.worker_run_as_user,
+ 'fs_group': self.kube_config.worker_fs_group,
Review comment:
@ashb Actually I was wrong, this was causing integrations test to fails so I
reverted to the previous behavior while taking into account the potential issue
that you pointed out.
----------------------------------------------------------------
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]
With regards,
Apache Git Services