From 40a84d0c8afc97bec14d7a4129f5e30c6eb08d96 Mon Sep 17 00:00:00 2001 From: Anthony Date: Wed, 4 Jun 2025 12:25:43 +0200 Subject: [PATCH] feat: Allow to add custom annotations for deployment in Helm (#1168) --- charts/planka/Chart.yaml | 2 +- charts/planka/templates/deployment.yaml | 4 ++++ charts/planka/values.yaml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/planka/Chart.yaml b/charts/planka/Chart.yaml index 8f35785c..dcf31b87 100644 --- a/charts/planka/Chart.yaml +++ b/charts/planka/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.2 +version: 1.0.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/planka/templates/deployment.yaml b/charts/planka/templates/deployment.yaml index b49011df..c2747b00 100644 --- a/charts/planka/templates/deployment.yaml +++ b/charts/planka/templates/deployment.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "planka.fullname" . }} labels: {{- include "planka.labels" . | nindent 4 }} + {{- with .Values.deploymentAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} diff --git a/charts/planka/values.yaml b/charts/planka/values.yaml index c3d695b8..d5fbd613 100644 --- a/charts/planka/values.yaml +++ b/charts/planka/values.yaml @@ -45,6 +45,9 @@ podAnnotations: {} podSecurityContext: {} # fsGroup: 2000 +# Annotations to add to the deployment +deploymentAnnotations: {} + securityContext: {} # capabilities: # drop: