From c04c4137cd545d74b608b42799ed75aa332e1c15 Mon Sep 17 00:00:00 2001 From: andreasgeisslerdt <131851681+andreasgeisslerdt@users.noreply.github.com> Date: Tue, 2 Jul 2024 13:43:43 +0200 Subject: [PATCH 1/2] Fix securityContext settings in job template Intends needed to be fixed and containerSecurityContext value settings are used --- contrib/charts/keycloak-config-cli/templates/job.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/charts/keycloak-config-cli/templates/job.yaml b/contrib/charts/keycloak-config-cli/templates/job.yaml index 478a66acb..a6d04f1de 100644 --- a/contrib/charts/keycloak-config-cli/templates/job.yaml +++ b/contrib/charts/keycloak-config-cli/templates/job.yaml @@ -34,7 +34,7 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} {{- with .Values.resources }} resources: - {{- toYaml . | nindent 10 }} + {{- toYaml . | nindent 12 }} {{- end }} env: {{- range $name, $value := .Values.env }} @@ -55,9 +55,9 @@ spec: name: "{{ tpl .Values.existingSecret . }}" key: "{{ .Values.existingSecretKey }}" {{- end }} - {{- with .Values.securityContext }} + {{- with .Values.containerSecurityContext }} securityContext: - {{- toYaml . | nindent 10 }} + {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: - name: config @@ -83,4 +83,4 @@ spec: {{- with .Values.securityContext }} securityContext: {{- toYaml . | nindent 8 }} - {{- end }} + {{- end }} From 2dbfc9fbcbde645a7247b5a19414d5b20a18c760 Mon Sep 17 00:00:00 2001 From: andreasgeisslerdt <131851681+andreasgeisslerdt@users.noreply.github.com> Date: Wed, 2 Oct 2024 11:44:42 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fe53aefe..7416eb6db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +### Fixed +- Fixed securityContext entries in job template + ## [6.1.5] - 2024-06-27 ## [6.1.3] - 2024-06-27