From a7429498b4f527e46e1ef3e736a0e58b742bf9a1 Mon Sep 17 00:00:00 2001 From: Devanshu Yadav Date: Thu, 2 Apr 2026 19:44:48 +0530 Subject: [PATCH] cs: support SQL Express env toggle --- charts/cs/templates/deploy.yaml | 8 ++++++++ charts/cs/values.yaml | 2 ++ 2 files changed, 10 insertions(+) diff --git a/charts/cs/templates/deploy.yaml b/charts/cs/templates/deploy.yaml index bb42cfb..d299b91 100644 --- a/charts/cs/templates/deploy.yaml +++ b/charts/cs/templates/deploy.yaml @@ -36,6 +36,14 @@ spec: {{- end }} env: {{- include "cv.commonenv" . }} + {{- if hasKey .Values "cvUseSqlExpress" }} + - name: CV_USE_SQL_EXPRESS + {{- if kindIs "bool" .Values.cvUseSqlExpress }} + value: {{ ternary "yes" "no" .Values.cvUseSqlExpress | quote }} + {{- else }} + value: {{ .Values.cvUseSqlExpress | toString | quote }} + {{- end }} + {{- end }} {{- if .Values.email }} - name: CVID_EMAIL # Optional. Email of admin user diff --git a/charts/cs/values.yaml b/charts/cs/values.yaml index 4c131c3..4d19be9 100644 --- a/charts/cs/values.yaml +++ b/charts/cs/values.yaml @@ -6,6 +6,8 @@ # email: # Optional. Email of the first admin user +# cvUseSqlExpress: "yes" # Optional. Set to "yes" to deploy CS image with SQL Express edition. + # image: # final image value will be registry/namespace/repository:tag # registry: # Optional. Overrides global value. # namespace: # Optional image namespace or account. Overrides global value. Default is commvault