Skip to content

Commit

Permalink
Merge pull request #76 from MediaMarktSaturn/application/fixIntendation
Browse files Browse the repository at this point in the history
[Application] Fix intendation issues
  • Loading branch information
heubeck authored Dec 7, 2023
2 parents a4784c4 + f35d52a commit 3b334e3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/application/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ maintainers:
- name: MediaMarktSaturn
url: https://github.com/MediaMarktSaturn
appVersion: 1.0.0
version: 1.8.1
version: 1.8.2
22 changes: 15 additions & 7 deletions charts/application/templates/k8s-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ spec:
{{- end }}
spec:
serviceAccountName: {{ .Release.Name }}
{{- if .Values.podSecurityContext }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- end }}
nodeSelector: {{ if not .Values.serviceAccount.workloadIdentityServiceAccount -}}{{- if not .Values.nodeSelector -}}{}{{- end -}}{{- end }}
{{- if .Values.serviceAccount.workloadIdentityServiceAccount }}
iam.gke.io/gke-metadata-server-enabled: "true"
Expand All @@ -54,7 +56,11 @@ spec:
- {{ . | quote }}
{{- end }}
securityContext:
{{- toYaml $i.securityContext | nindent 12 }}
{{- if and $i.securityContext $.Values.initDefaults.securityContext }}
{{- toYaml (merge $i.securityContext $.Values.initDefaults.securityContext) | nindent 12 }}
{{- else }}
{{- toYaml (or $i.securityContext $.Values.initDefaults.securityContext) | nindent 12 }}
{{- end }}
resources:
{{- toYaml (or $i.resources $.Values.initDefaults.resources) | nindent 12 }}
{{- if .env }}
Expand Down Expand Up @@ -161,8 +167,10 @@ spec:
{{- end }}
{{- end }}
- name: {{ .Release.Name }}
{{- if .Values.container.securityContext }}
securityContext:
{{- toYaml .Values.container.securityContext | nindent 12 }}
{{- end }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args: {{ if not .Values.container.args }}[]{{ end }}
Expand Down Expand Up @@ -294,18 +302,18 @@ spec:
{{- range $s := .Values.sidecars }}
{{ if .secretVolumes }}
{{- range .secretVolumes }}
- name: "{{ $s.name }}-{{ .secretName }}"
secret:
secretName: {{ .secretName }}
- name: "{{ $s.name }}-{{ .secretName }}"
secret:
secretName: {{ .secretName }}
{{- end }}
{{- end }}
{{- end }}
{{- range $i := .Values.initContainers }}
{{ if .secretVolumes }}
{{- range .secretVolumes }}
- name: "{{ $i.name }}-{{ .secretName }}"
secret:
secretName: {{ .secretName }}
- name: "{{ $i.name }}-{{ .secretName }}"
secret:
secretName: {{ .secretName }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 3b334e3

Please sign in to comment.