Skip to content

Commit 2ec8b04

Browse files
authored
Migrate toYaml to partial (#29)
1 parent be5b46d commit 2ec8b04

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
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.8.0
18+
version: 0.8.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.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
![Version: 0.8.1](https://img.shields.io/badge/Version-0.8.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/backstage-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
name: {{ .configMapRef }}
4141
{{- end }}
4242
{{- if .Values.backstage.extraVolumes }}
43-
{{- toYaml .Values.backstage.extraVolumes | nindent 8 }}
43+
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.extraVolumes "context" $ ) | nindent 8 }}
4444
{{- end }}
4545
{{- end }}
4646
{{- if .Values.backstage.image.pullSecrets }}
@@ -118,6 +118,6 @@ spec:
118118
subPath: {{ .filename }}
119119
{{- end }}
120120
{{- if .Values.backstage.extraVolumeMounts }}
121-
{{- toYaml .Values.backstage.extraVolumeMounts | nindent 12 }}
121+
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.extraVolumeMounts "context" $ ) | nindent 12 }}
122122
{{- end }}
123123
{{- end }}

charts/backstage/templates/serviceaccount.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ metadata:
77
labels:
88
app.kubernetes.io/component: backstage
99
{{- with .Values.serviceAccount.labels }}
10-
{{- toYaml . | trim | nindent 4 }}
10+
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | trim | nindent 4 }}
1111
{{- end }}
1212
{{- if .Values.serviceAccount.annotations }}
1313
annotations:
1414
{{- with .Values.serviceAccount.annotations }}
15-
{{- toYaml . | trim | nindent 4 }}
15+
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | trim | nindent 4 }}
1616
{{- end }}
1717
{{- end }}
1818
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}

0 commit comments

Comments
 (0)