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_r266270636
##########
File path:
airflow/contrib/kubernetes/kubernetes_request_factory/kubernetes_request_factory.py
##########
@@ -187,12 +187,17 @@ def extract_image_pull_secrets(pod, req):
'name': pull_secret
} for pull_secret in pod.image_pull_secrets.split(',')]
+ @staticmethod
+ def extract_security_context(pod, req):
+ if pod.security_context is None:
+ return
+
+ # Add security_context if not present in spec
+ req['spec']['securityContext'] = req['spec'].get('securityContext', {})
Review comment:
@ashb Any further questions or requested changes?
----------------------------------------------------------------
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