From 819f3ba7c17200a90df38cb90d15599e7b54f249 Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 9 Jun 2026 16:25:40 +0200 Subject: [PATCH] cmd/k8s-operator: allow custom annotations on deployment (#17143) Fixes #17188 Signed-off-by: Anthony SCHWARTZ Signed-off-by: Anthony SCHWARTZ --- cmd/k8s-operator/deploy/chart/templates/deployment.yaml | 3 +++ cmd/k8s-operator/deploy/chart/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml index feffd03a3..05317b6e5 100644 --- a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml +++ b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml @@ -6,6 +6,9 @@ kind: Deployment metadata: name: operator namespace: {{ .Release.Namespace }} + {{- if .Values.annotations }} + annotations: {{- toYaml .Values.annotations | nindent 4 }} + {{- end }} spec: replicas: 1 strategy: diff --git a/cmd/k8s-operator/deploy/chart/values.yaml b/cmd/k8s-operator/deploy/chart/values.yaml index 7cebb2ef2..f5591e856 100644 --- a/cmd/k8s-operator/deploy/chart/values.yaml +++ b/cmd/k8s-operator/deploy/chart/values.yaml @@ -62,6 +62,9 @@ operatorConfig: resources: {} + # Specifies annotations for deployment + annotations: {} + podAnnotations: {} podLabels: {}