Skip to content

Commit 5c14696

Browse files
feat(helm): add optional service annotations to collab chart Service (#199)
Fixes: #198 - add service.annotations to values.yaml with default {} - render metadata.annotations in templates/service.yaml via .Values.service.annotations - keep backward compatibility when annotations are not set
1 parent 1df2081 commit 5c14696

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

charts/collab/templates/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ metadata:
44
name: {{ include "codetogether.fullname" . }}
55
labels:
66
{{- include "codetogether.labels" . | nindent 4 }}
7+
{{- with .Values.service.annotations }}
8+
annotations:
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}
711
spec:
812
type: {{ .Values.service.type }}
913
ports:

charts/collab/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ av:
203203
service:
204204
type: ClusterIP
205205
port: 443
206+
annotations: {}
206207

207208
serviceAccount:
208209
create: true

0 commit comments

Comments
 (0)