From 0ea3b465660c50fe123d7849dd2da9095d6cdd35 Mon Sep 17 00:00:00 2001 From: devthejo Date: Sun, 30 Jun 2024 01:11:28 +0200 Subject: [PATCH] fix: maildev cron securitycontext --- charts/maildev/templates/cron.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/maildev/templates/cron.yaml b/charts/maildev/templates/cron.yaml index 30185c9..19e7d75 100644 --- a/charts/maildev/templates/cron.yaml +++ b/charts/maildev/templates/cron.yaml @@ -36,10 +36,16 @@ spec: volumeMounts: - name: data mountPath: {{ .Values.persistence.mountPath }} + securityContext: + runAsUser: 1000 + runAsGroup: 1000 - name: reload-mail image: "{{ .Values.cron.image.repository }}:{{ .Values.cron.image.tag }}" imagePullPolicy: {{ .Values.cron.image.pullPolicy }} args: ["wget","{{ include "common.names.fullname" . }}:1080/reloadMailsFromDirectory"] + securityContext: + runAsUser: 1000 + runAsGroup: 1000 volumes: - name: data persistentVolumeClaim: