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