Commit 1afa72e 1 parent bca6aa8 commit 1afa72e Copy full SHA for 1afa72e
File tree 4 files changed +20
-6
lines changed
charts/spark-operator-chart
4 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,7 @@ metadata:
21
21
labels :
22
22
{{- include "spark-operator.controller.labels" . | nindent 4 }}
23
23
spec :
24
- {{- with .Values.controller.replicas }}
25
- replicas : {{ . }}
26
- {{- end }}
24
+ replicas : {{ .Values.controller.replicas }}
27
25
selector :
28
26
matchLabels :
29
27
{{- include "spark-operator.controller.selectorLabels" . | nindent 6 }}
Original file line number Diff line number Diff line change @@ -22,9 +22,7 @@ metadata:
22
22
labels :
23
23
{{- include "spark-operator.webhook.labels" . | nindent 4 }}
24
24
spec :
25
- {{- with .Values.webhook.replicas }}
26
- replicas : {{ . }}
27
- {{- end }}
25
+ replicas : {{ .Values.webhook.replicas }}
28
26
selector :
29
27
matchLabels :
30
28
{{- include "spark-operator.webhook.selectorLabels" . | nindent 6 }}
Original file line number Diff line number Diff line change @@ -53,6 +53,15 @@ tests:
53
53
path : spec.replicas
54
54
value : 10
55
55
56
+ - it : Should set replicas if `controller.replicas` is set
57
+ set :
58
+ controller :
59
+ replicas : 0
60
+ asserts :
61
+ - equal :
62
+ path : spec.replicas
63
+ value : 0
64
+
56
65
- it : Should add pod labels if `controller.labels` is set
57
66
set :
58
67
controller :
Original file line number Diff line number Diff line change @@ -48,6 +48,15 @@ tests:
48
48
path : spec.replicas
49
49
value : 10
50
50
51
+ - it : Should set replicas if `webhook.replicas` is set
52
+ set :
53
+ webhook :
54
+ replicas : 0
55
+ asserts :
56
+ - equal :
57
+ path : spec.replicas
58
+ value : 0
59
+
51
60
- it : Should add pod labels if `webhook.labels` is set
52
61
set :
53
62
webhook :
You can’t perform that action at this time.
0 commit comments