From cbe8f52112092a5e9dc425a9b26aa16656790132 Mon Sep 17 00:00:00 2001 From: adobrodey <8377544+ADobrodey@users.noreply.github.com> Date: Wed, 7 Feb 2024 16:28:32 +0100 Subject: [PATCH] [VDEVOPS-485]: Secret reloader annotations Signed-off-by: adobrodey <8377544+ADobrodey@users.noreply.github.com> --- stable/deployment/Chart.yaml | 2 +- stable/deployment/templates/deployment.yaml | 6 +++++- stable/deployment/templates/rollout.yaml | 7 +++++++ stable/statefulset/Chart.yaml | 2 +- stable/statefulset/templates/statefulset.yaml | 6 +++++- 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/stable/deployment/Chart.yaml b/stable/deployment/Chart.yaml index 78ae33d..35194c4 100644 --- a/stable/deployment/Chart.yaml +++ b/stable/deployment/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: deployment -version: 1.3.11 +version: 1.4.0 description: Typical microservice chart. Supports Ingress controller, horizontal-scalable containers type: application dependencies: diff --git a/stable/deployment/templates/deployment.yaml b/stable/deployment/templates/deployment.yaml index 0a0d29c..f0d2392 100644 --- a/stable/deployment/templates/deployment.yaml +++ b/stable/deployment/templates/deployment.yaml @@ -5,8 +5,12 @@ metadata: name: {{ include "k8s-common.names.fullname" . }} namespace: {{ include "k8s-common.names.namespace" . | quote }} labels: {{ include "k8s-common.labels.standard" (dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + annotations: + {{ if .Values.env.vaultSecret }} + reloader.stakater.com/auto: "true" + {{- end }} {{- if .Values.commonAnnotations }} - annotations: {{- include "k8s-common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- include "k8s-common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} spec: revisionHistoryLimit: 2 diff --git a/stable/deployment/templates/rollout.yaml b/stable/deployment/templates/rollout.yaml index 82f103b..b37e810 100644 --- a/stable/deployment/templates/rollout.yaml +++ b/stable/deployment/templates/rollout.yaml @@ -5,6 +5,13 @@ metadata: name: {{ include "k8s-common.names.fullname" . }} namespace: {{ .Release.Namespace }} labels: {{ include "k8s-common.labels.standard" . | nindent 4 }} + annotations: + {{ if .Values.env.vaultSecret }} + reloader.stakater.com/auto: "true" + {{- end }} + {{- if .Values.commonAnnotations }} + {{- include "k8s-common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} spec: revisionHistoryLimit: 2 {{- if not .Values.autoscaling.enabled }} diff --git a/stable/statefulset/Chart.yaml b/stable/statefulset/Chart.yaml index 582d8e5..50de6f8 100644 --- a/stable/statefulset/Chart.yaml +++ b/stable/statefulset/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: statefulset -version: 1.3.6 +version: 1.4.0 description: Typical StateFul Set application type: application dependencies: diff --git a/stable/statefulset/templates/statefulset.yaml b/stable/statefulset/templates/statefulset.yaml index 40e32b0..462d4e8 100644 --- a/stable/statefulset/templates/statefulset.yaml +++ b/stable/statefulset/templates/statefulset.yaml @@ -4,8 +4,12 @@ metadata: name: {{ template "k8s-common.names.fullname" . }} namespace: {{ .Release.Namespace }} labels: {{ include "k8s-common.labels.standard" (dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + annotations: + {{ if .Values.env.vaultSecret }} + reloader.stakater.com/auto: "true" + {{- end }} {{- if .Values.commonAnnotations }} - annotations: {{- include "k8s-common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- include "k8s-common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} spec: revisionHistoryLimit: 2