Skip to content

Commit

Permalink
Migrate toYaml to partial
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Block <andy.block@gmail.com>
  • Loading branch information
sabre1041 committed Dec 14, 2022
1 parent 047a74d commit ae14b3b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/backstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# 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.6.3
version: 0.6.4

dependencies:
- name: common
Expand Down
4 changes: 2 additions & 2 deletions charts/backstage/templates/backstage-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
name: {{ .configMapRef }}
{{- end }}
{{- if .Values.backstage.extraVolumes }}
{{- toYaml .Values.backstage.extraVolumes | nindent 8 }}
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.extraVolumes "context" $ ) | nindent 8 }}
{{- end }}
{{- end }}
{{- if .Values.backstage.image.pullSecrets }}
Expand Down Expand Up @@ -107,6 +107,6 @@ spec:
subPath: {{ .filename }}
{{- end }}
{{- if .Values.backstage.extraVolumeMounts }}
{{- toYaml .Values.backstage.extraVolumeMounts | nindent 12 }}
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.extraVolumeMounts "context" $ ) | nindent 12 }}
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/backstage/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ metadata:
labels:
app.kubernetes.io/component: backstage
{{- with .Values.serviceAccount.labels }}
{{- toYaml . | trim | nindent 4 }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | trim | nindent 4 }}
{{- end }}
{{- if .Values.serviceAccount.annotations }}
annotations:
{{- with .Values.serviceAccount.annotations }}
{{- toYaml . | trim | nindent 4 }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | trim | nindent 4 }}
{{- end }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
Expand Down

0 comments on commit ae14b3b

Please sign in to comment.