diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index 14bbeee6..ffa0e090 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -31,11 +31,8 @@ spec: {{- end }} spec: serviceAccountName: {{ include "trino.serviceAccountName" . }} - {{- with .Values.securityContext }} securityContext: - runAsUser: {{ .runAsUser }} - runAsGroup: {{ .runAsGroup }} - {{- end }} + {{- toYaml .Values.securityContext | nindent 8 }} {{- if .Values.shareProcessNamespace.coordinator }} shareProcessNamespace: {{ .Values.shareProcessNamespace.coordinator }} {{- end }} diff --git a/charts/trino/templates/deployment-worker.yaml b/charts/trino/templates/deployment-worker.yaml index 6868a9ea..efc8e74e 100644 --- a/charts/trino/templates/deployment-worker.yaml +++ b/charts/trino/templates/deployment-worker.yaml @@ -33,11 +33,8 @@ spec: {{- end }} spec: serviceAccountName: {{ include "trino.serviceAccountName" . }} - {{- with .Values.securityContext }} securityContext: - runAsUser: {{ .runAsUser }} - runAsGroup: {{ .runAsGroup }} - {{- end }} + {{- toYaml .Values.securityContext | nindent 8 }} {{- if .Values.shareProcessNamespace.worker }} shareProcessNamespace: {{ .Values.shareProcessNamespace.worker }} {{- end }}