From 81d0dd423b16708a55a9c92b3352234f59701268 Mon Sep 17 00:00:00 2001 From: Dennis Geiselmann Date: Thu, 28 Mar 2024 21:35:46 +0100 Subject: [PATCH] feat(574): allow configuring annotations for Deployment --- charts/ingressmonitorcontroller/templates/deployment.yaml | 4 ++++ charts/ingressmonitorcontroller/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/charts/ingressmonitorcontroller/templates/deployment.yaml b/charts/ingressmonitorcontroller/templates/deployment.yaml index 6b40d9af..9883f687 100644 --- a/charts/ingressmonitorcontroller/templates/deployment.yaml +++ b/charts/ingressmonitorcontroller/templates/deployment.yaml @@ -6,6 +6,10 @@ metadata: labels: {{- include "ingress-monitor-controller.labels" . | nindent 4 }} control-plane: controller-manager + {{- with .Values.deploymentAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} selector: diff --git a/charts/ingressmonitorcontroller/values.yaml b/charts/ingressmonitorcontroller/values.yaml index 0800766d..78f2ed5f 100644 --- a/charts/ingressmonitorcontroller/values.yaml +++ b/charts/ingressmonitorcontroller/values.yaml @@ -71,6 +71,8 @@ resources: # cpu: 100m # memory: 128Mi +deploymentAnnotations: {} + podAnnotations: {} podSecurityContext: