Skip to content

Commit

Permalink
Fix multi line annotations at services (#57)
Browse files Browse the repository at this point in the history
Fix #56 for service annotations across multiple lines.

Signed-off-by: Theodor van Nahl <theodor.vannahl@docmorris.de>
  • Loading branch information
tvannahl authored May 21, 2024
1 parent 86f4598 commit f20c141
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/dependency-track/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: dependency-track
version: 0.6.0
version: 0.6.1
type: application
appVersion: 4.11.1
description: |-
Expand Down
12 changes: 12 additions & 0 deletions charts/dependency-track/ci/multi-line-annotations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
api-server:
service:
annotations:
foo: |
bar
naz
frontend:
service:
annotations:
foo: |
bar
naz
2 changes: 1 addition & 1 deletion charts/dependency-track/templates/api-server/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels: {{- include "dependencytrack.apiServerLabels" . | nindent 4 }}
{{- if .Values.apiServer.service.annotations }}
annotations:
{{ toYaml .Values.apiServer.service.annotations | indent 4 }}
{{- toYaml .Values.apiServer.service.annotations | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.apiServer.service.type | quote }}
Expand Down
2 changes: 1 addition & 1 deletion charts/dependency-track/templates/frontend/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels: {{- include "dependencytrack.frontendLabels" . | nindent 4 }}
{{- if .Values.frontend.service.annotations }}
annotations:
{{ toYaml .Values.frontend.service.annotations | indent 4 }}
{{- .Values.frontend.service.annotations | toYaml | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.frontend.service.type | quote }}
Expand Down

0 comments on commit f20c141

Please sign in to comment.