diff --git a/charts/obico/Chart.yaml b/charts/obico/Chart.yaml index 569bdeb8e..308272bd5 100644 --- a/charts/obico/Chart.yaml +++ b/charts/obico/Chart.yaml @@ -24,5 +24,5 @@ sources: - https://github.com/gabe565/docker-obico annotations: artifacthub.io/changes: |- - - kind: added - description: Initial release + - kind: fixed + description: Fix error when `server.env` is unset diff --git a/charts/obico/templates/server.yaml b/charts/obico/templates/server.yaml index 64255a29b..97bb519a3 100644 --- a/charts/obico/templates/server.yaml +++ b/charts/obico/templates/server.yaml @@ -24,7 +24,7 @@ ML_API_HOST: "http://{{ include "bjw-s.common.lib.chart.names.fullname" $ }}-ml- {{- end -}} {{- define "obico.server.hardcodedValues" -}} -{{- $env := deepCopy .Values.server.env }} +{{- $env := default dict .Values.server.env | deepCopy }} {{- $_ := include "obico.server.redisValues" . | fromYaml | merge $env }} {{- $_ = include "obico.server.env" . | fromYaml | merge $env }}