This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-deploy-kube.git
The following commit(s) were added to refs/heads/master by this push:
new 396d5bf Use Recreate strategy for Deployments with Persistent Volumes
(#695)
396d5bf is described below
commit 396d5bf335421cd74a6d685877194684442016b4
Author: David Grove <[email protected]>
AuthorDate: Tue Jul 27 12:12:10 2021 -0400
Use Recreate strategy for Deployments with Persistent Volumes (#695)
Fixes #638.
---
helm/openwhisk/templates/couchdb-pod.yaml | 4 ++++
helm/openwhisk/templates/provider-alarm-pod.yaml | 4 ++++
helm/openwhisk/templates/redis-pod.yaml | 4 ++++
3 files changed, 12 insertions(+)
diff --git a/helm/openwhisk/templates/couchdb-pod.yaml
b/helm/openwhisk/templates/couchdb-pod.yaml
index 01f7af7..6891719 100644
--- a/helm/openwhisk/templates/couchdb-pod.yaml
+++ b/helm/openwhisk/templates/couchdb-pod.yaml
@@ -28,6 +28,10 @@ spec:
selector:
matchLabels:
name: {{ .Release.Name }}-couchdb
+ {{- if .Values.k8s.persistence.enabled }}
+ strategy:
+ type: "Recreate"
+ {{- end }}
template:
metadata:
labels:
diff --git a/helm/openwhisk/templates/provider-alarm-pod.yaml
b/helm/openwhisk/templates/provider-alarm-pod.yaml
index 019a9ee..aebe0f6 100644
--- a/helm/openwhisk/templates/provider-alarm-pod.yaml
+++ b/helm/openwhisk/templates/provider-alarm-pod.yaml
@@ -28,6 +28,10 @@ spec:
selector:
matchLabels:
name: {{ .Release.Name }}-alarmprovider
+ {{- if .Values.k8s.persistence.enabled }}
+ strategy:
+ type: "Recreate"
+ {{- end }}
template:
metadata:
labels:
diff --git a/helm/openwhisk/templates/redis-pod.yaml
b/helm/openwhisk/templates/redis-pod.yaml
index d5dc44c..30c74b1 100644
--- a/helm/openwhisk/templates/redis-pod.yaml
+++ b/helm/openwhisk/templates/redis-pod.yaml
@@ -28,6 +28,10 @@ spec:
selector:
matchLabels:
name: {{ .Release.Name }}-redis
+ {{- if .Values.k8s.persistence.enabled }}
+ strategy:
+ type: "Recreate"
+ {{- end }}
template:
metadata:
labels: