diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index 35d233c9..4d81c4e2 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -105,6 +105,8 @@ spec: - name: {{ .Chart.Name }}-coordinator image: {{ include "trino.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy }} + securityContext: + {{- toYaml .Values.containerSecurityContext | nindent 12 }} env: {{- toYaml .Values.env | nindent 12 }} envFrom: diff --git a/charts/trino/templates/deployment-worker.yaml b/charts/trino/templates/deployment-worker.yaml index 05c32221..de4c87ab 100644 --- a/charts/trino/templates/deployment-worker.yaml +++ b/charts/trino/templates/deployment-worker.yaml @@ -81,6 +81,8 @@ spec: - name: {{ .Chart.Name }}-worker image: {{ include "trino.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy }} + securityContext: + {{- toYaml .Values.containerSecurityContext | nindent 12 }} env: {{- toYaml .Values.env | nindent 12 }} envFrom: diff --git a/charts/trino/templates/secret.yaml b/charts/trino/templates/secret.yaml index 445eabc0..9978b4cb 100644 --- a/charts/trino/templates/secret.yaml +++ b/charts/trino/templates/secret.yaml @@ -10,6 +10,9 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "trino.labels" . | nindent 4 }} + {{- if .Values.commonLabels }} + {{- tpl (toYaml .Values.commonLabels) . | nindent 4 }} + {{- end }} data: {{- if .Values.auth.passwordAuth }} password.db: {{ .Values.auth.passwordAuth | b64enc }} diff --git a/charts/trino/templates/service.yaml b/charts/trino/templates/service.yaml index 8e10a842..3d614901 100644 --- a/charts/trino/templates/service.yaml +++ b/charts/trino/templates/service.yaml @@ -8,6 +8,9 @@ metadata: chart: {{ template "trino.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} + {{- if .Values.commonLabels }} + {{- tpl (toYaml .Values.commonLabels) . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: