Skip to content

Commit 1e93afb

Browse files
Dane Butlerabernix
andauthored
docs: add support for helm service resource annotations (#1627)
Co-authored-by: Jesse Rosenberger <[email protected]>
1 parent a46729c commit 1e93afb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

helm/chart/router/templates/service.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ metadata:
44
name: {{ include "router.fullname" . }}
55
labels:
66
{{- include "router.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:
@@ -13,3 +17,4 @@ spec:
1317
name: http
1418
selector:
1519
{{- include "router.selectorLabels" . | nindent 4 }}
20+

helm/chart/router/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ securityContext: {}
8080
service:
8181
type: ClusterIP
8282
port: 80
83+
annotations: {}
8384

8485
ingress:
8586
enabled: false

0 commit comments

Comments
 (0)