Skip to content

Commit 0f052d3

Browse files
feat(helm): add controller service annotations
Allow configuring custom annotations on the controller service via Values.controller.service.annotations.
1 parent 636dc6f commit 0f052d3

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

helm/kagent/templates/controller-service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ metadata:
55
namespace: {{ include "kagent.namespace" . }}
66
labels:
77
{{- include "kagent.controller.labels" . | nindent 4 }}
8+
{{- if .Values.controller.service.annotations }}
9+
annotations:
10+
{{- with .Values.controller.service.annotations }}
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
13+
{{- end }}
814
spec:
915
type: {{ .Values.controller.service.type }}
1016
ports:

helm/kagent/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ controller:
229229
ports:
230230
port: 8083
231231
targetPort: 8083
232+
annotations: {}
232233
# -- Prometheus-style /metrics endpoint for the controller manager.
233234
# When enabled, provisions a dedicated metrics Service plus the
234235
# ClusterRoles required for authenticated scrapes. Bind

0 commit comments

Comments
 (0)