From 44d66a2edc7d54c808c07b1614a4d513b579244a Mon Sep 17 00:00:00 2001 From: Micaiah Martin Date: Tue, 3 Dec 2024 12:26:03 -0700 Subject: [PATCH] Set permissions for mounted config --- charts/self-host/templates/ext-db-client.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/charts/self-host/templates/ext-db-client.yaml b/charts/self-host/templates/ext-db-client.yaml index 70bf5021..f251c5f6 100644 --- a/charts/self-host/templates/ext-db-client.yaml +++ b/charts/self-host/templates/ext-db-client.yaml @@ -26,6 +26,13 @@ spec: labels: app: {{ template "bitwarden.dbClient" . }} spec: + initContainers: + - name: set-permissions + image: busybox + command: ["sh", "-c", "chmod 666 /opt/cloudbeaver/workspace/GlobalConfiguration/.dbeaver/data-sources.json"] + volumeMounts: + - name: db-client-config + mountPath: /opt/cloudbeaver/workspace/GlobalConfiguration/.dbeaver containers: - name: db-client image: "{{ .Values.extensions.dbClient.image.name }}:{{ .Values.extensions.dbClient.image.tag }}"