Skip to content

Commit

Permalink
run jobs with airflow serviceAccount
Browse files Browse the repository at this point in the history
Signed-off-by: Volodymyr Moseichuk <[email protected]>
  • Loading branch information
moskitone authored and thesuperzapper committed May 20, 2021
1 parent 19d552e commit d583cd1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/airflow/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: airflow is a platform to programmatically author, schedule, and monitor workflows
name: airflow
version: 8.1.1
version: 8.1.2
appVersion: 2.0.1
icon: https://airflow.apache.org/_images/pin_large.png
home: https://airflow.apache.org/
Expand Down
1 change: 1 addition & 0 deletions charts/airflow/templates/jobs/job-create-connections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
imagePullSecrets:
- name: {{ .Values.airflow.image.pullSecret }}
{{- end }}
serviceAccountName: {{ include "airflow.serviceAccountName" . }}
containers:
- name: create-connections
{{- include "airflow.image" . | indent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/airflow/templates/jobs/job-create-pools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
imagePullSecrets:
- name: {{ .Values.airflow.image.pullSecret }}
{{- end }}
serviceAccountName: {{ include "airflow.serviceAccountName" . }}
containers:
- name: create-pools
{{- include "airflow.image" . | indent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/airflow/templates/jobs/job-create-users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
imagePullSecrets:
- name: {{ .Values.airflow.image.pullSecret }}
{{- end }}
serviceAccountName: {{ include "airflow.serviceAccountName" . }}
containers:
- name: create-users
{{- include "airflow.image" . | indent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/airflow/templates/jobs/job-create-variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
imagePullSecrets:
- name: {{ .Values.airflow.image.pullSecret }}
{{- end }}
serviceAccountName: {{ include "airflow.serviceAccountName" . }}
containers:
- name: create-variables
{{- include "airflow.image" . | indent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/airflow/templates/jobs/job-upgrade-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ spec:
imagePullSecrets:
- name: {{ .Values.airflow.image.pullSecret }}
{{- end }}
serviceAccountName: {{ include "airflow.serviceAccountName" . }}
initContainers:
{{- include "airflow.init_container.check_db" . | indent 8 }}
containers:
Expand Down

0 comments on commit d583cd1

Please sign in to comment.