From 7de1f473a30a917fdf9451546df56b105d7e78aa Mon Sep 17 00:00:00 2001 From: Victor Lavaud Date: Sat, 7 Mar 2026 01:06:49 +0100 Subject: [PATCH] Fix incorrect usage of securityContext * does not exist * should be used for container-specific security contexts * should be used for contexts that apply to all pods --- helm/hookshot/templates/_pod.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helm/hookshot/templates/_pod.tpl b/helm/hookshot/templates/_pod.tpl index 09879a1c1..f9e95d704 100644 --- a/helm/hookshot/templates/_pod.tpl +++ b/helm/hookshot/templates/_pod.tpl @@ -4,9 +4,9 @@ schedulerName: "{{ .Values.schedulerName }}" {{- end }} serviceAccountName: {{ template "hookshot.serviceAccountName" . }} automountServiceAccountToken: {{ .Values.serviceAccount.autoMount }} -{{- if .Values.securityContext }} +{{- if .Values.podSecurityContext }} securityContext: -{{ toYaml .Values.securityContext | indent 2 }} +{{ toYaml .Values.podSecurityContext | indent 2 }} {{- end }} {{- if .Values.hostAliases }} hostAliases: @@ -38,9 +38,9 @@ containers: - {{ . }} {{- end }} {{- end}} -{{- if .Values.containerSecurityContext }} +{{- if .Values.securityContext }} securityContext: -{{- toYaml .Values.containerSecurityContext | nindent 6 }} +{{- toYaml .Values.securityContext | nindent 6 }} {{- end }} volumeMounts: {{- if or (and (not .Values.hookshot.existingConfigMap) (.Values.hookshot.config)) (.Values.hookshot.existingConfigMap) }}