File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1+ {{- if .Values.mongodb.enabled }}
12apiVersion : apps/v1
23kind : Deployment
34metadata :
4243 targetPort : {{ .Values.mongodb.port }}
4344 selector :
4445 {{- include "hdx-oss.selectorLabels" . | nindent 4 }}
45- app : mongodb
46+ app : mongodb
47+ {{- end }}
Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ suite: Test MongoDB Deployment
22templates :
33 - mongodb-deployment.yaml
44tests :
5- - it : should render both deployment and service
5+ - it : should render both deployment and service when enabled
66 set :
77 mongodb :
88 image : mongo:5.0.14-focal
99 port : 27017
10+ enabled : true
1011 asserts :
1112 - hasDocuments :
1213 count : 2
@@ -15,4 +16,12 @@ tests:
1516 of : Deployment
1617 - documentIndex : 1
1718 isKind :
18- of : Service
19+ of : Service
20+
21+ - it : should not render any documents when disabled
22+ set :
23+ mongodb :
24+ enabled : false
25+ asserts :
26+ - hasDocuments :
27+ count : 0
Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ hyperdx:
156156mongodb :
157157 image : " mongo:5.0.14-focal"
158158 port : 27017
159+ enabled : true
159160
160161clickhouse :
161162 image : " clickhouse/clickhouse-server:24-alpine"
You can’t perform that action at this time.
0 commit comments