From a09cf17e3c48104e30ee5a6bf94b0b81777f16d2 Mon Sep 17 00:00:00 2001 From: a-hat Date: Mon, 26 Aug 2024 10:50:02 +0200 Subject: [PATCH] add option for deployment annotations to helm chart Signed-off-by: a-hat --- deploy/charts/trust-manager/README.md | 7 +++++++ deploy/charts/trust-manager/templates/deployment.yaml | 4 ++++ deploy/charts/trust-manager/values.yaml | 3 +++ 3 files changed, 14 insertions(+) diff --git a/deploy/charts/trust-manager/README.md b/deploy/charts/trust-manager/README.md index 69f44b79..1b71984a 100644 --- a/deploy/charts/trust-manager/README.md +++ b/deploy/charts/trust-manager/README.md @@ -366,6 +366,13 @@ Pod labels to add to trust-manager pods. > ``` Pod annotations to add to trust-manager pods. +#### **app.deploymentAnnotations** ~ `object` +> Default value: +> ```yaml +> {} +> ``` + +Deployment annotations to add to the trust-manager deployment. ### Webhook #### **app.webhook.host** ~ `string` diff --git a/deploy/charts/trust-manager/templates/deployment.yaml b/deploy/charts/trust-manager/templates/deployment.yaml index 063295b1..31eef547 100644 --- a/deploy/charts/trust-manager/templates/deployment.yaml +++ b/deploy/charts/trust-manager/templates/deployment.yaml @@ -5,6 +5,10 @@ metadata: namespace: {{ include "trust-manager.namespace" . }} labels: {{- include "trust-manager.labels" . | nindent 4 }} + {{- if .Values.app.deploymentAnnotations }} + annotations: + {{- toYaml .Values.app.deploymentAnnotations | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} selector: diff --git a/deploy/charts/trust-manager/values.yaml b/deploy/charts/trust-manager/values.yaml index 6cc9fcfc..b2458f21 100644 --- a/deploy/charts/trust-manager/values.yaml +++ b/deploy/charts/trust-manager/values.yaml @@ -212,6 +212,9 @@ app: # Pod annotations to add to trust-manager pods. podAnnotations: {} + # Deployment annotations to add to the trust-manager deployment. + deploymentAnnotations: {} + # +docs:section=Webhook webhook: