Skip to content

Commit 1474d04

Browse files
committed
wip
Signed-off-by: Armel Soro <[email protected]>
1 parent 811ebb9 commit 1474d04

File tree

5 files changed

+273
-118
lines changed

5 files changed

+273
-118
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.6.1
41+
version: 2.7.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.6.1](https://img.shields.io/badge/Version-2.6.1-informational?style=flat-square)
5+
![Version: 2.7.0](https://img.shields.io/badge/Version-2.7.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
@@ -158,8 +158,16 @@ spec:
158158
key: {{ include "backstage.postgresql.databaseSecretKey" . }}
159159
{{- end }}
160160
{{- if .Values.backstage.extraEnvVars }}
161+
{{- if (kindIs "map" .Values.backstage.extraEnvVars) }}
162+
{{- /* If extraEnvVars is a dict, Helm will merge it automatically by key */ -}}
163+
{{- range $_, $value := .Values.backstage.extraEnvVars }}
164+
- {{- include "common.tplvalues.render" ( dict "value" $value "context" $) | nindent 14 }}
165+
{{- end }}
166+
{{- else if (kindIs "slice" .Values.backstage.extraEnvVars) }}
167+
{{- /* If extraEnvVars is a list, keep current behavior (no merging) */ -}}
161168
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.extraEnvVars "context" $) | nindent 12 }}
162169
{{- end }}
170+
{{- end }}
163171
ports:
164172
- name: backend
165173
containerPort: {{ .Values.backstage.containerPorts.backend }}

0 commit comments

Comments
 (0)