From c3d9ae699ee48afccafe79fca72fc8240fcb60bd Mon Sep 17 00:00:00 2001 From: Adi Muraru Date: Thu, 28 Jul 2022 14:27:22 +0300 Subject: [PATCH] Add support to set Deployment annotations --- charts/kminion/templates/deployment.yaml | 4 ++++ charts/kminion/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/charts/kminion/templates/deployment.yaml b/charts/kminion/templates/deployment.yaml index 35bcfa7..d652960 100644 --- a/charts/kminion/templates/deployment.yaml +++ b/charts/kminion/templates/deployment.yaml @@ -5,6 +5,10 @@ metadata: namespace: {{ .Release.Namespace | quote }} labels: {{- include "kminion.labels" . | nindent 4}} + {{- with .Values.deployment.annotations}} + annotations: + {{- toYaml . | nindent 4}} + {{- end}} spec: {{- if not .Values.autoscaling.enabled}} replicas: {{.Values.replicaCount}} diff --git a/charts/kminion/values.yaml b/charts/kminion/values.yaml index 279cc3b..9385454 100644 --- a/charts/kminion/values.yaml +++ b/charts/kminion/values.yaml @@ -109,6 +109,8 @@ daemonset: enabled: false deployment: + # Annotations to add to the Deployment resource + annotations: {} volumes: # Mount files from Kubernetes secrets into the container secrets: []