From e9d2031e68c4f3edbb87739ae92df9e4cbc66ae4 Mon Sep 17 00:00:00 2001 From: Mykhailo Sindieiev <9822870+mikesindieiev@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:35:27 +0100 Subject: [PATCH 1/2] add a possibility to attach existing secrets to directus pod --- charts/directus/templates/deployment.yaml | 4 ++++ charts/directus/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/charts/directus/templates/deployment.yaml b/charts/directus/templates/deployment.yaml index 14a8647..e4fa26e 100644 --- a/charts/directus/templates/deployment.yaml +++ b/charts/directus/templates/deployment.yaml @@ -34,6 +34,10 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} envFrom: + {{- range $val := .Values.attachExistingSecrets }} + - secretRef: + name: {{ $val }} + {{- end }} - configMapRef: name: {{ include "directus.fullname" . }}-configmap env: diff --git a/charts/directus/values.yaml b/charts/directus/values.yaml index 24d8e2a..b0dc965 100644 --- a/charts/directus/values.yaml +++ b/charts/directus/values.yaml @@ -72,6 +72,8 @@ ingress: extraEnvVars: [] +attachExistingSecrets: [] + # - existingSecretInKubernetes resources: {} # We usually recommend not to specify default resources and to leave this as a conscious @@ -119,6 +121,7 @@ extraVolumes: [] extraVolumeMounts: [] + mariadb: # The switch to switch off the installation of the mariadb, the rest of the settings are being used during the installation enableInstallation: true From faafd5d51f71384f1371c96acb41c3c2e171e0f1 Mon Sep 17 00:00:00 2001 From: Mykhailo Sindieiev <9822870+mikesindieiev@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:40:44 +0100 Subject: [PATCH 2/2] update chart version; update directus version --- charts/directus/Chart.yaml | 4 ++-- charts/directus/values.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/directus/Chart.yaml b/charts/directus/Chart.yaml index d9d70c0..8388565 100644 --- a/charts/directus/Chart.yaml +++ b/charts/directus/Chart.yaml @@ -19,8 +19,8 @@ maintainers: email: sindieiev@protonmail.ch url: https://github.com/directus-labs/helm-chart -version: 1.0.3 -appVersion: "11.1.1" +version: 1.0.4 +appVersion: "11.1.2" dependencies: - name: mariadb diff --git a/charts/directus/values.yaml b/charts/directus/values.yaml index b0dc965..6bb20cd 100644 --- a/charts/directus/values.yaml +++ b/charts/directus/values.yaml @@ -8,7 +8,7 @@ image: repository: directus/directus pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "11.1.1" + tag: "11.1.2" imagePullSecrets: [] nameOverride: ""