From 467e8e9556a3ff9cd8d5988909324de7010bdc79 Mon Sep 17 00:00:00 2001 From: Ash Leece Date: Fri, 20 Dec 2024 11:47:42 +0000 Subject: [PATCH] Add environment variables support to deployment template --- templates/deployment.yaml | 1 + values.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index b5dce04..95ec32a 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -47,6 +47,7 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + env: {{ toYaml .Values.env | nindent 12 }} ports: - name: http containerPort: {{ .Values.service.port }} diff --git a/values.yaml b/values.yaml index 6643517..add59e9 100644 --- a/values.yaml +++ b/values.yaml @@ -16,6 +16,10 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +# env: +# - name: VIKUNJA_SERVICE_ENABLEREGISTRATION +# value: false + persistence: enabled: true size: 5Gi