We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 857631b commit fd4fb26Copy full SHA for fd4fb26
examples/chart/event-handler/templates/deployment.yaml
@@ -6,6 +6,10 @@ metadata:
6
{{- include "event-handler.labels" . | nindent 4 }}
7
spec:
8
replicas: 1
9
+ {{- if or .Values.persistentVolumeClaim.enabled .Values.persistentVolumeClaim.existingClaim }}
10
+ strategy:
11
+ type: Recreate
12
+ {{- end }}
13
selector:
14
matchLabels:
15
{{- include "event-handler.selectorLabels" . | nindent 6 }}
examples/chart/event-handler/tests/deployment_test.yaml
@@ -9,3 +9,12 @@ tests:
tag: v98.76.54
asserts:
- matchSnapshot: {}
+
+ - it: uses the recreate strategy if a PV is mounted
+ set:
+ persistentVolumeClaim:
16
+ enabled: true
17
+ asserts:
18
+ - equal:
19
+ path: spec.strategy.type
20
+ value: Recreate
0 commit comments