This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v1-10-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 465a3aef7da419af65ce308c11ecfd1e82a43256 Author: gardnerdev <[email protected]> AuthorDate: Wed Aug 12 01:03:51 2020 +0200 Run create-user-job as user with specified id (#10291) In secured cluster there is a need to run this job with specific user id (cherry picked from commit 1266b29af79128c2364ef534e7a7de1a4ab6484f) --- chart/templates/create-user-job.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chart/templates/create-user-job.yaml b/chart/templates/create-user-job.yaml index 0f76252..656059b 100644 --- a/chart/templates/create-user-job.yaml +++ b/chart/templates/create-user-job.yaml @@ -44,6 +44,8 @@ spec: component: create-user-job release: {{ .Release.Name }} spec: + securityContext: + runAsUser: {{ .Values.uid }} restartPolicy: OnFailure nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }}
