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: