From b95ab6c6a1b4c6bec8e88c9560ffcdaf6694f623 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Thu, 26 Jan 2023 14:17:51 -0800 Subject: [PATCH] added deploymentAnnotations to helm chart --- helm-charts/infisical/Chart.yaml | 2 +- helm-charts/infisical/templates/backend-deployment.yaml | 4 ++++ helm-charts/infisical/templates/frontend-deployment.yaml | 4 ++++ helm-charts/infisical/values.yaml | 6 ++++-- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/helm-charts/infisical/Chart.yaml b/helm-charts/infisical/Chart.yaml index b6426e6f4..013b01e54 100644 --- a/helm-charts/infisical/Chart.yaml +++ b/helm-charts/infisical/Chart.yaml @@ -7,7 +7,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.1.8 +version: 0.1.9 # 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/helm-charts/infisical/templates/backend-deployment.yaml b/helm-charts/infisical/templates/backend-deployment.yaml index 7e4b922a2..62eb90436 100644 --- a/helm-charts/infisical/templates/backend-deployment.yaml +++ b/helm-charts/infisical/templates/backend-deployment.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "infisical.backend.fullname" . }} labels: {{- include "infisical.backend.labels" . | nindent 4 }} + {{- with .Values.backend.deploymentAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} spec: replicas: {{ .Values.backend.replicaCount }} selector: diff --git a/helm-charts/infisical/templates/frontend-deployment.yaml b/helm-charts/infisical/templates/frontend-deployment.yaml index de6490595..553d94d35 100644 --- a/helm-charts/infisical/templates/frontend-deployment.yaml +++ b/helm-charts/infisical/templates/frontend-deployment.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "infisical.frontend.fullname" . }} labels: {{- include "infisical.frontend.labels" . | nindent 4 }} + {{- with .Values.frontend.deploymentAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} spec: replicas: {{ .Values.frontend.replicaCount }} selector: diff --git a/helm-charts/infisical/values.yaml b/helm-charts/infisical/values.yaml index 1773bb7b0..46c611d88 100644 --- a/helm-charts/infisical/values.yaml +++ b/helm-charts/infisical/values.yaml @@ -8,12 +8,13 @@ nameOverride: "" frontend: name: frontend podAnnotations: {} + deploymentAnnotations: {} replicaCount: 2 image: repository: infisical/frontend pullPolicy: IfNotPresent tag: "latest" - # kubeSecretRef: some-kube-secret-name + # kubeSecretRef: some-kube-secret-name service: # type of the frontend service type: ClusterIP @@ -24,12 +25,13 @@ frontend: backend: name: backend podAnnotations: {} + deploymentAnnotations: {} replicaCount: 2 image: repository: infisical/backend pullPolicy: IfNotPresent tag: "latest" - # kubeSecretRef: some-kube-secret-name + # kubeSecretRef: some-kube-secret-name service: annotations: {}