blob: 9b7bdcb550a09c476e5c0ea330d629170111c4e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
---
suite: test storage class behavior
templates:
- statefulset.yaml
tests:
- it: 'should render "" as storageClassname (global case)'
values:
- ./values/persistence.yaml
set:
global.persistence.storageClass: "-"
asserts:
- isEmpty:
path: spec.volumeClaimTemplates[0].spec.storageClassName
- it: 'should "" as storageClassname (override case)'
values:
- ./values/persistence.yaml
set:
global.persistence.storageClass: "global"
persistence.storageClassOverride: "-"
asserts:
- isEmpty:
path: spec.volumeClaimTemplates[0].spec.storageClassName
- it: 'should "" as storageClassname (local case)'
values:
- ./values/persistence.yaml
set:
persistence.storageClass: "-"
asserts:
- isEmpty:
path: spec.volumeClaimTemplates[0].spec.storageClassName
- it: 'should render "global" as storageClassname'
values:
- ./values/persistence.yaml
set:
global.persistence.storageClass: "global"
asserts:
- equal:
path: spec.volumeClaimTemplates[0].spec.storageClassName
value: "global"
- it: 'should render "local" as storageClassname'
values:
- ./values/persistence.yaml
asserts:
- equal:
path: spec.volumeClaimTemplates[0].spec.storageClassName
value: "local"
- it: 'should render "override" as storageClassname'
values:
- ./values/persistence.yaml
set:
global.persistence.storageClass: "global"
persistence.storageClassOverride: "override"
asserts:
- equal:
path: spec.volumeClaimTemplates[0].spec.storageClassName
value: "override"
- it: 'should render "RELEASE-NAME-mariadb-galera-data" as storageClassname'
asserts:
- equal:
path: spec.volumeClaimTemplates[0].spec.storageClassName
value: "RELEASE-NAME-mariadb-galera-data"
|