Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Move sidecarContainers to be first
Browse files Browse the repository at this point in the history
  • Loading branch information
PurseChicken authored and avakarev committed Apr 9, 2024
1 parent 3fe1bb2 commit 54bd379
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions charts/gatus/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ initContainers:
{{- toYaml .Values.extraInitContainers | nindent 2 }}
{{- end }}
containers:
{{- if .Values.sidecarContainers }}
{{- range $name, $spec := .Values.sidecarContainers }}
- name: {{ $name }}
{{- if not $spec.securityContext }}
securityContext:
{{- toYaml $.Values.securityContext | nindent 6 }}
{{- end }}
{{- toYaml $spec | nindent 4 }}
{{- end }}
{{- end }}
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 6 }}
Expand Down Expand Up @@ -75,16 +85,6 @@ containers:
subPath: {{ .subPath | default "" }}
readOnly: {{ .readOnly }}
{{- end }}
{{- if .Values.sidecarContainers }}
{{- range $name, $spec := .Values.sidecarContainers }}
- name: {{ $name }}
{{- if not $spec.securityContext }}
securityContext:
{{- toYaml $.Values.securityContext | nindent 6 }}
{{- end }}
{{- toYaml $spec | nindent 4 }}
{{- end }}
{{- end }}
volumes:
- name: {{ include "common.names.fullname" . }}-config
configMap:
Expand Down

0 comments on commit 54bd379

Please sign in to comment.