Commit 11ba0f9f authored by Sandro Mathys's avatar Sandro Mathys
Browse files

add ways to automatically trigger a pod rollout

parent 6d1e4f49
......@@ -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.2
version: 0.4.0
# 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
......
......@@ -14,10 +14,19 @@ spec:
{{- include "shibboleth-sp.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- if .Values.podAnnotations }}
annotations:
{{- toYaml .Values.podAnnotations | nindent 8 }}
{{- end }}
{{- if .Values.deployment.automaticPodRollout.enabled }}
{{- if .Values.deployment.automaticPodRollout.always }}
automaticPodRollout/always: {{ randAlphaNum 5 | quote }}
{{- end }}
{{- if .Values.deployment.automaticPodRollout.onConfigMapChange }}
automaticPodRollout/configmap-apache: {{ include (print $.Template.BasePath "/configmap-apache.yaml") . | sha256sum }}
automaticPodRollout/configmap-shibboleth: {{ include (print $.Template.BasePath "/configmap-shibboleth.yaml") . | sha256sum }}
{{- end }}
{{- end }}
{{- with .Values.podAnnotations }}
{{- . | toYaml | nindent 8 }}
{{- end }}
labels:
{{- include "shibboleth-sp.selectorLabels" . | nindent 8 }}
spec:
......
......@@ -19,7 +19,7 @@ fullnameOverride: ""
image:
repository: "cr.gitlab-int.switch.ch/maps/shibboleth-sp-helm-chart/image/shibboleth-sp"
tag: "0.2.2"
tag: "0.2.3"
pullPolicy: IfNotPresent
# Specify all secret(s) required to pull the images used for this installation.
......@@ -75,6 +75,17 @@ route:
termination: "edge"
insecureEdgeTerminationPolicy: "Redirect"
deployment:
# To pick up ConfigMap and Secret changes, all pods in the Deployment need to be restarted. This can
# be done manually, e.g. with `kubectl rollout restart deployment/<deployment>`, or automatically.
automaticPodRollout:
enabled: false
# This will trigger a rollout with every `helm install|upgrade`, independent of whether it's necessary or not.
always: false
# This will trigger a rollout if one of the built-in ConfigMap templates changes. Note that this won't
# pick up changes to ConfigMaps or Secrets that are merely referenced but provided outside of this chart.
onConfigMapChange: false
####################################
### backend / shibboleth (shibd) ###
####################################
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment