Skip to content

Commit

Permalink
[VDEVOPS-485]: Secret reloader annotations
Browse files Browse the repository at this point in the history
Signed-off-by: adobrodey <[email protected]>
  • Loading branch information
ADobrodey committed Feb 7, 2024
1 parent 8d73471 commit cbe8f52
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stable/deployment/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
6 changes: 5 additions & 1 deletion stable/deployment/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions stable/deployment/templates/rollout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion stable/statefulset/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: statefulset
version: 1.3.6
version: 1.4.0
description: Typical StateFul Set application
type: application
dependencies:
Expand Down
6 changes: 5 additions & 1 deletion stable/statefulset/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbe8f52

Please sign in to comment.