Skip to content

Commit dbc58f5

Browse files
committed
Add service annotations support
1 parent 57edff6 commit dbc58f5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

templates/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ metadata:
99
namespace: {{ .Release.Namespace }}
1010
labels:
1111
{{- include "media-servarr-base.labels" . | nindent 4 }}
12+
{{- with .Values.service.annotations }}
13+
annotations:
14+
{{- toYaml . | nindent 4 }}
15+
{{- end }}
1216
spec:
1317
type: {{ .Values.service.type }}
1418
ports:

values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ serviceAccount:
145145

146146
service:
147147
type: 'ClusterIP'
148+
annotations: {}
149+
# example-annotation: "something"
148150
ports:
149151
- port: # by default uses application.port
150152
targetPort: 'http'

0 commit comments

Comments
 (0)