You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/11/15 09:37:57 UTC

[airflow] 14/19: Run create-user-job as user with specified id (#10291)

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 <ra...@gmail.com>
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 }}