From 93bda606a32f24a341a922636eb18eee1feaa103 Mon Sep 17 00:00:00 2001 From: Ro Santalla Date: Mon, 22 Apr 2024 09:27:20 +0200 Subject: [PATCH] fix inheritance of sidekiq securityContext (#76) --- templates/deployment-sidekiq.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/deployment-sidekiq.yaml b/templates/deployment-sidekiq.yaml index f6e9c7e..f90b53a 100644 --- a/templates/deployment-sidekiq.yaml +++ b/templates/deployment-sidekiq.yaml @@ -83,8 +83,10 @@ spec: {{- end }} containers: - name: {{ $context.Chart.Name }} + {{- with $context.Values.mastodon.sidekiq.securityContext | default $context.Values.securityContext }} securityContext: - {{- toYaml $context.Values.mastodon.sidekiq.securityContext | nindent 12 }} + {{- toYaml . | nindent 12 }} + {{- end }} image: "{{ coalesce (dig "image" "repository" false .) $context.Values.image.repository }}:{{ coalesce (dig "image" "tag" false .) $context.Values.image.tag $context.Chart.AppVersion }}" imagePullPolicy: {{ $context.Values.image.pullPolicy }} command: