Skip to content

Commit 6126db3

Browse files
maxnitzeMax Nitze
andauthored
bugfix: Render globally configured image pull secrets in deployment template (#64)
Co-authored-by: Max Nitze <Max.Nitze@mgm-tp.com>
1 parent d3fc1b8 commit 6126db3

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

charts/backstage/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.17.0
18+
version: 0.17.1
1919

2020
dependencies:
2121
- name: common

charts/backstage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Backstage Helm Chart
33

4-
![Version: 0.17.0](https://img.shields.io/badge/Version-0.17.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
![Version: 0.17.1](https://img.shields.io/badge/Version-0.17.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
55

66
A Helm chart for deploying a Backstage application
77

charts/backstage/templates/_helpers.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ Return the proper image name
55
{{ include "common.images.image" (dict "imageRoot" .Values.backstage.image "global" .Values.global) }}
66
{{- end -}}
77

8+
{{/*
9+
Return the proper Docker Image Registry Secret Names
10+
*/}}
11+
{{- define "backstage.renderImagePullSecrets" -}}
12+
{{- include "common.images.renderPullSecrets" (dict "images" (list .Values.backstage.image) "context" $) -}}
13+
{{- end -}}
14+
815
{{/*
916
Create the name of the service account to use
1017
*/}}

charts/backstage/templates/backstage-deployment.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,7 @@ spec:
5656
configMap:
5757
name: backstage-app-config
5858
{{- end }}
59-
{{- if .Values.backstage.image.pullSecrets }}
60-
imagePullSecrets:
61-
{{- range .Values.backstage.image.pullSecrets }}
62-
- name: {{ . }}
63-
{{- end }}
64-
{{- end }}
59+
{{- include "backstage.renderImagePullSecrets" . | nindent 6 }}
6560
{{- if .Values.backstage.initContainers }}
6661
initContainers:
6762
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.initContainers "context" $) | nindent 8 }}

0 commit comments

Comments
 (0)