Skip to content

Commit

Permalink
fix ct lint
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Hitzler <[email protected]>
  • Loading branch information
zartstrom committed Jul 11, 2022
1 parent 7750b8e commit 3b6938b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/airflow/templates/_helpers/pods.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ imagePullPolicy: {{ .Values.airflow.image.pullPolicy }}
securityContext:
runAsUser: {{ .Values.airflow.image.uid }}
runAsGroup: {{ .Values.airflow.image.gid }}
{{- if .Values.airflow.defaultContainerSecurityContext }}
{{- omit .Values.airflow.defaultContainerSecurityContext "runAsUser" "runAsGroup" | toYaml | nindent 2 }}
{{- end }}
{{- end }}

{{/*
Expand Down Expand Up @@ -200,7 +202,9 @@ EXAMPLE USAGE: {{ include "airflow.container.git_sync" (dict "Release" .Release
securityContext:
runAsUser: {{ .Values.dags.gitSync.image.uid }}
runAsGroup: {{ .Values.dags.gitSync.image.gid }}
{{- if .Values.airflow.defaultContainerSecurityContext }}
{{- omit .Values.airflow.defaultContainerSecurityContext "runAsUser" "runAsGroup" | toYaml | nindent 4 }}
{{- end }}
resources:
{{- toYaml .Values.dags.gitSync.resources | nindent 4 }}
envFrom:
Expand Down
2 changes: 2 additions & 0 deletions charts/airflow/templates/pgbouncer/pgbouncer-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ spec:
securityContext:
runAsUser: {{ .Values.pgbouncer.image.uid }}
runAsGroup: {{ .Values.pgbouncer.image.gid }}
{{- if .Values.airflow.defaultContainerSecurityContext }}
{{- omit .Values.airflow.defaultContainerSecurityContext "runAsUser" "runAsGroup" | toYaml | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.pgbouncer.resources | nindent 12 }}
envFrom:
Expand Down

0 comments on commit 3b6938b

Please sign in to comment.