From d841a2d91397cefc291b6327f603010f6f8d6fa6 Mon Sep 17 00:00:00 2001 From: Anthony SCHWARTZ Date: Mon, 15 Sep 2025 21:23:29 +0200 Subject: [PATCH] helm chart - Allow to add custom annotations for deployment Revamp code --- charts/descheduler/templates/deployment.yaml | 3 +++ charts/descheduler/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/charts/descheduler/templates/deployment.yaml b/charts/descheduler/templates/deployment.yaml index c708e0473..877348238 100644 --- a/charts/descheduler/templates/deployment.yaml +++ b/charts/descheduler/templates/deployment.yaml @@ -6,6 +6,9 @@ metadata: namespace: {{ include "descheduler.namespace" . }} labels: {{- include "descheduler.labels" . | nindent 4 }} + {{- if .Values.annotations }} + annotations: {{- toYaml .Values.deploymentAnnotations | nindent 4 }} + {{- end }} spec: {{- if gt (.Values.replicas | int) 1 }} {{- if not .Values.leaderElection.enabled }} diff --git a/charts/descheduler/values.yaml b/charts/descheduler/values.yaml index ae50f6818..06a6d36a5 100644 --- a/charts/descheduler/values.yaml +++ b/charts/descheduler/values.yaml @@ -204,6 +204,9 @@ serviceAccount: # Default is not set - but only implied by the ServiceAccount # automountServiceAccountToken: true +# Annotations that'll be applied to deployment +deploymentAnnotations: {} + cronJobAnnotations: {} cronJobLabels: {}