From 680f6a65a4ccd1beaefd2b878ce211d1f82b7e27 Mon Sep 17 00:00:00 2001 From: chechia Date: Tue, 27 Jun 2023 17:24:33 +0800 Subject: [PATCH] FEATURE: helm add deployment annotation --- charts/bbgo/Chart.yaml | 2 +- charts/bbgo/templates/deployment.yaml | 4 ++++ charts/bbgo/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/bbgo/Chart.yaml b/charts/bbgo/Chart.yaml index 2542e2f62..f932e0c34 100644 --- a/charts/bbgo/Chart.yaml +++ b/charts/bbgo/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: 0.3.3 +version: 0.3.4 # 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/bbgo/templates/deployment.yaml b/charts/bbgo/templates/deployment.yaml index 2f90f781a..7809e4756 100644 --- a/charts/bbgo/templates/deployment.yaml +++ b/charts/bbgo/templates/deployment.yaml @@ -2,6 +2,10 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "bbgo.fullname" . }} + {{- with .Values.deploymentAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} labels: {{- include "bbgo.labels" . | nindent 4 }} spec: diff --git a/charts/bbgo/values.yaml b/charts/bbgo/values.yaml index 1fe20f538..2cd8b419c 100644 --- a/charts/bbgo/values.yaml +++ b/charts/bbgo/values.yaml @@ -39,6 +39,8 @@ serviceAccount: additionalLabels: {} +deploymentAnnotations: {} + podAnnotations: {} podSecurityContext: {}