diff --git a/helm-chart/eoapi/Chart.yaml b/helm-chart/eoapi/Chart.yaml index dbd48fa..919f504 100644 --- a/helm-chart/eoapi/Chart.yaml +++ b/helm-chart/eoapi/Chart.yaml @@ -15,7 +15,7 @@ kubeVersion: ">=1.23.0-0" # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: "0.5.0" +version: "0.5.1" # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/helm-chart/eoapi/templates/services/configmap.yaml b/helm-chart/eoapi/templates/services/configmap.yaml index 92be1d3..55ef8cf 100644 --- a/helm-chart/eoapi/templates/services/configmap.yaml +++ b/helm-chart/eoapi/templates/services/configmap.yaml @@ -7,8 +7,22 @@ metadata: name: {{ $serviceName }}-envvar-configmap-{{ $.Release.Name }} data: {{- range $envKey, $envValue := index $v "settings" "envVars" }} + {{- if (eq (kindOf $envValue) "map") }} + {{- if (index $envValue "valueFrom") }} + {{- if (index $envValue "valueFrom" "secretKeyRef") }} + {{ upper $envKey }}: + valueFrom: + secretKeyRef: + name: {{ index $envValue "valueFrom" "secretKeyRef" "name" }} + key: {{ index $envValue "valueFrom" "secretKeyRef" "key" }} + {{- else }} {{ upper $envKey }}: "{{ $envValue }}" {{- end }} + {{- else }} + {{ upper $envKey }}: "{{ $envValue }}" + {{- end }} + {{- end }} + {{- end }} --- {{/* END: if index $v "enabled" */}} {{- end }}