diff --git a/erpnext/templates/deployment-erpnext.yaml b/erpnext/templates/deployment-erpnext.yaml index 9f33225..43de5c8 100644 --- a/erpnext/templates/deployment-erpnext.yaml +++ b/erpnext/templates/deployment-erpnext.yaml @@ -31,7 +31,9 @@ spec: command: ['sh', '-c'] args: ['chown -R 1000:1000 /home/frappe/frappe-bench'] securityContext: + {{- if .Values.securityContext }} {{- toYaml .Values.securityContext | nindent 12 }} + {{- end }} capabilities: add: ["CAP_CHOWN"] volumeMounts: