From dacb9ce154887711b2492f91f8016c68b98738e3 Mon Sep 17 00:00:00 2001 From: Philipp Belitz Date: Fri, 27 Sep 2024 13:12:02 +0200 Subject: [PATCH] feat: added customizable annotations Added the option to define costume annotation to the Connaisseur deployment. fixes #1765 credits to @edison-vflow --- charts/connaisseur/Chart.yaml | 4 ++-- charts/connaisseur/templates/deployment.yaml | 3 +++ charts/connaisseur/values.yaml | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/connaisseur/Chart.yaml b/charts/connaisseur/Chart.yaml index 33e13c3c4..ac97ff283 100644 --- a/charts/connaisseur/Chart.yaml +++ b/charts/connaisseur/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: connaisseur description: Helm chart for Connaisseur - a Kubernetes admission controller to integrate container image signature verification and trust pinning into a cluster. type: application -version: 2.6.1 -appVersion: 3.6.1 +version: 2.7.0 +appVersion: 3.7.0 keywords: - container image - signature diff --git a/charts/connaisseur/templates/deployment.yaml b/charts/connaisseur/templates/deployment.yaml index fb59ae8fc..a12e5b7df 100644 --- a/charts/connaisseur/templates/deployment.yaml +++ b/charts/connaisseur/templates/deployment.yaml @@ -7,6 +7,9 @@ metadata: {{- include "connaisseur.labels" . | nindent 4 }} annotations: checksum/config: {{ include "connaisseur.getConfigChecksum" . }} + {{- if .Values.kubernetes.deployment.annotations -}} + {{ toYaml .Values.kubernetes.deployment.annotations | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.kubernetes.deployment.replicasCount }} selector: diff --git a/charts/connaisseur/values.yaml b/charts/connaisseur/values.yaml index 29eb7cee3..47203eb78 100644 --- a/charts/connaisseur/values.yaml +++ b/charts/connaisseur/values.yaml @@ -47,6 +47,7 @@ kubernetes: tls: {} # set to use custom tls certificates for webhook (key and cert fields) envs: {} # set to use custom environment variables for connaisseur podLabels: {} # additional labels to attach to the pods created + annotations: {} # additional annotations to attach to the deployment # ----------------------------------------------------- # changes to connaisseur service