From 00761e1da48b28ce80ae159ae986264af9bb3c36 Mon Sep 17 00:00:00 2001 From: Lucas Soares Date: Mon, 5 Feb 2024 20:39:25 -0300 Subject: [PATCH] fix: allow custom uri from envs --- helm/templates/housekeeper-deployment.yaml | 4 ++++ helm/values.yaml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/helm/templates/housekeeper-deployment.yaml b/helm/templates/housekeeper-deployment.yaml index 893acaa..004baa6 100644 --- a/helm/templates/housekeeper-deployment.yaml +++ b/helm/templates/housekeeper-deployment.yaml @@ -52,10 +52,14 @@ spec: value: {{ quote .Values.audit.enabled }} - name: DECKARD_HOUSEKEEPER_ENABLED value: "true" + {{- if (include "deckard.storage.uri" .) }} - name: DECKARD_STORAGE_URI value: {{ include "deckard.storage.uri" . | quote }} + {{- end }} + {{- if (include "deckard.cache.uri" .) }} - name: DECKARD_CACHE_URI value: {{ include "deckard.cache.uri" . | quote }} + {{- end }} - name: DECKARD_REDIS_DB value: {{ quote .Values.cache.redis.database }} ports: diff --git a/helm/values.yaml b/helm/values.yaml index e03ec6f..52030c0 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -31,7 +31,7 @@ metrics: # Defines the path to access metrics path: /metrics -env: [] +env: {} podAnnotations: {} @@ -177,7 +177,7 @@ housekeeper: securityContext: {} - env: [] + env: {} containerPorts: []