Skip to content

Commit

Permalink
fix(base-cluster): only toYaml if field exists
Browse files Browse the repository at this point in the history
otherwise `{}` will be inserted, breaking everything
  • Loading branch information
cwrau committed Nov 7, 2024
1 parent 7d103b1 commit 2e1bb7b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ metadata:
name: {{ printf "%s-%s" .Release.Name .name }}
namespace: {{ .Release.Namespace }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- with .additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .additionalLabels }}{{- toYaml . | nindent 4 }}{{- end }}
spec:
chart:
spec:
Expand Down

0 comments on commit 2e1bb7b

Please sign in to comment.