From 45a795a97a9e66c3a13f350e2c5b62e69fc568d8 Mon Sep 17 00:00:00 2001 From: Sjouke de Vries Date: Thu, 27 Jul 2023 16:58:00 +0200 Subject: [PATCH] feat(kube-enforcer): add deploymentAnnotations option to control deployment annotations this is useful for example with argo cd sync waves Signed-off-by: Sjouke de Vries --- kube-enforcer/templates/kube-enforcer-deployment.yaml | 6 ++++++ kube-enforcer/values.yaml | 1 + 2 files changed, 7 insertions(+) diff --git a/kube-enforcer/templates/kube-enforcer-deployment.yaml b/kube-enforcer/templates/kube-enforcer-deployment.yaml index 33b26eb4..47e754cf 100644 --- a/kube-enforcer/templates/kube-enforcer-deployment.yaml +++ b/kube-enforcer/templates/kube-enforcer-deployment.yaml @@ -6,6 +6,12 @@ metadata: app: {{ include "kube-enforcer.fullname" . }} aqua.component: kubeenforcer {{ include "aqua.labels" . | indent 4 }} + {{- with .Values.deploymentAnnotations }} + annotations: + {{- range $key,$value := . }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} name: {{ include "kube-enforcer.fullname" . }} namespace: {{ .Release.Namespace }} spec: diff --git a/kube-enforcer/values.yaml b/kube-enforcer/values.yaml index 380fa800..0d1ed8e0 100644 --- a/kube-enforcer/values.yaml +++ b/kube-enforcer/values.yaml @@ -226,6 +226,7 @@ resources: {} nodeSelector: {} tolerations: [] podAnnotations: {} +deploymentAnnotations: {} podLabels: {} affinity: {}