From ee0ef5196072ae3a9f87cbe46288eede021ef18f Mon Sep 17 00:00:00 2001 From: CatherineThompson Date: Thu, 20 Jun 2024 17:56:47 -0600 Subject: [PATCH] make pod security context fully configurable --- charts/trino/templates/deployment-coordinator.yaml | 5 +---- charts/trino/templates/deployment-worker.yaml | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) 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 }}