Skip to content

Commit 9b144de

Browse files
committed
wip
Signed-off-by: Armel Soro <[email protected]>
1 parent 3b72b98 commit 9b144de

File tree

5 files changed

+274
-119
lines changed

5 files changed

+274
-119
lines changed

charts/backstage/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ sources:
3838
# This is the chart version. This version number should be incremented each time you make changes
3939
# to the chart and its templates, including the app version.
4040
# Versions are expected to follow Semantic Versioning (https://semver.org/)
41-
version: 2.5.3
41+
version: 2.6.0

charts/backstage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Backstage Helm Chart
33

44
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/backstage)](https://artifacthub.io/packages/search?repo=backstage)
5-
![Version: 2.5.3](https://img.shields.io/badge/Version-2.5.3-informational?style=flat-square)
5+
![Version: 2.6.0](https://img.shields.io/badge/Version-2.6.0-informational?style=flat-square)
66
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
77

88
A Helm chart for deploying a Backstage application

charts/backstage/templates/backstage-deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,16 @@ spec:
156156
key: {{ include "backstage.postgresql.databaseSecretKey" . }}
157157
{{- end }}
158158
{{- if .Values.backstage.extraEnvVars }}
159+
{{- if (kindIs "map" .Values.backstage.extraEnvVars) }}
160+
{{- /* If extraEnvVars is a dict, Helm will merge it automatically by key */ -}}
161+
{{- range $_, $value := .Values.backstage.extraEnvVars }}
162+
- {{- include "common.tplvalues.render" ( dict "value" $value "context" $) | nindent 14 }}
163+
{{- end }}
164+
{{- else if (kindIs "slice" .Values.backstage.extraEnvVars) }}
165+
{{- /* If extraEnvVars is a list, keep current behavior (no merging) */ -}}
159166
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.extraEnvVars "context" $) | nindent 12 }}
160167
{{- end }}
168+
{{- end }}
161169
ports:
162170
- name: backend
163171
containerPort: {{ .Values.backstage.containerPorts.backend }}

0 commit comments

Comments
 (0)