Skip to content

Commit

Permalink
fix(t8s-cluster): only toYaml if field exists (#1227)
Browse files Browse the repository at this point in the history
otherwise `{}` will be inserted, breaking everything
  • Loading branch information
cwrau authored Nov 18, 2024
1 parent 76fb7b0 commit a98420d
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 a98420d

Please sign in to comment.