From 562bf8205860bfdf5626e218022dc346070de65c Mon Sep 17 00:00:00 2001 From: "heitorrbarros@gmail.com" Date: Tue, 16 Apr 2024 09:46:14 -0300 Subject: [PATCH] feat: Add fsGroup option into securityContext --- charts/trino/README.md | 1 + charts/trino/templates/deployment-coordinator.yaml | 1 + charts/trino/templates/deployment-worker.yaml | 1 + charts/trino/values.yaml | 1 + 4 files changed, 4 insertions(+) diff --git a/charts/trino/README.md b/charts/trino/README.md index 44465278..51169e64 100644 --- a/charts/trino/README.md +++ b/charts/trino/README.md @@ -52,6 +52,7 @@ The following table lists the configurable parameters of the Trino chart and the | `sidecarContainers` | | `{}` | | `securityContext.runAsUser` | | `1000` | | `securityContext.runAsGroup` | | `1000` | +| `securityContext.fsGroup` | | `1000` | | `shareProcessNamespace.coordinator` | | `false` | | `shareProcessNamespace.worker` | | `false` | | `service.type` | | `"ClusterIP"` | diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index 35d233c9..66731c32 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -40,6 +40,7 @@ spec: securityContext: runAsUser: {{ .runAsUser }} runAsGroup: {{ .runAsGroup }} + fsGroup: {{ .fsGroup }} {{- end }} {{- if .Values.shareProcessNamespace.coordinator }} shareProcessNamespace: {{ .Values.shareProcessNamespace.coordinator }} diff --git a/charts/trino/templates/deployment-worker.yaml b/charts/trino/templates/deployment-worker.yaml index 05c32221..26ee65bf 100644 --- a/charts/trino/templates/deployment-worker.yaml +++ b/charts/trino/templates/deployment-worker.yaml @@ -44,6 +44,7 @@ spec: securityContext: runAsUser: {{ .runAsUser }} runAsGroup: {{ .runAsGroup }} + fsGroup: {{ .fsGroup }} {{- end }} {{- if .Values.shareProcessNamespace.worker }} shareProcessNamespace: {{ .Values.shareProcessNamespace.worker }} diff --git a/charts/trino/values.yaml b/charts/trino/values.yaml index 04e0d19c..4e6b5996 100644 --- a/charts/trino/values.yaml +++ b/charts/trino/values.yaml @@ -218,6 +218,7 @@ sidecarContainers: {} securityContext: runAsUser: 1000 runAsGroup: 1000 + fsGroup: 1000 shareProcessNamespace: coordinator: false