From 4008143fd2bd841ad3f1c562ca7e93a299d0e883 Mon Sep 17 00:00:00 2001 From: rondlite Date: Sat, 30 May 2026 12:00:09 +0200 Subject: [PATCH 1/2] Update secret-tokens.yaml to handle secrets conditionally Add conditional logic to set secret tokens based on values. --- charts/twentycrm/templates/secret-tokens.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/charts/twentycrm/templates/secret-tokens.yaml b/charts/twentycrm/templates/secret-tokens.yaml index 9da7fb0..94a123b 100644 --- a/charts/twentycrm/templates/secret-tokens.yaml +++ b/charts/twentycrm/templates/secret-tokens.yaml @@ -11,9 +11,17 @@ metadata: heritage: "{{ .Release.Service }}" type: Opaque data: +{{- if .Values.secrets }} ACCESS_TOKEN_SECRET: {{ default (randAlphaNum 32) .Values.secrets.accessToken | b64enc | quote }} LOGIN_TOKEN_SECRET: {{ default (randAlphaNum 32) .Values.secrets.loginToken | b64enc | quote }} REFRESH_TOKEN_SECRET: {{ default (randAlphaNum 32) .Values.secrets.refreshToken | b64enc | quote }} FILE_TOKEN_SECRET: {{ default (randAlphaNum 32) .Values.secrets.fileToken | b64enc | quote }} APP_SECRET: {{ default (randAlphaNum 32) .Values.secrets.appSecret | b64enc | quote }} +{{- else }} + ACCESS_TOKEN_SECRET: {{ randAlphaNum 32 | b64enc | quote }} + LOGIN_TOKEN_SECRET: {{ randAlphaNum 32 | b64enc | quote }} + REFRESH_TOKEN_SECRET: {{ randAlphaNum 32 | b64enc | quote }} + FILE_TOKEN_SECRET: {{ randAlphaNum 32 | b64enc | quote }} + APP_SECRET: {{ randAlphaNum 32 | b64enc | quote }} +{{- end }} From 8301618e9a0f3d2871306804a22527d0a555d8e1 Mon Sep 17 00:00:00 2001 From: rondlite Date: Sat, 30 May 2026 22:54:33 +0200 Subject: [PATCH 2/2] Bump version to 0.2.1 --- charts/twentycrm/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/twentycrm/Chart.yaml b/charts/twentycrm/Chart.yaml index 43930bb..0e2a52f 100644 --- a/charts/twentycrm/Chart.yaml +++ b/charts/twentycrm/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v1 description: A Helm chart for https://github.com/twentyhq/twenty name: twentycrm -version: 0.2.0 +version: 0.2.1