File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -269,4 +269,36 @@ tests:
269269 value : private-registry-secret
270270 - lengthEqual :
271271 path : spec.template.spec.imagePullSecrets
272- count : 3
272+ count : 3
273+
274+ - it : should include initContainers resources when configured and mongodb is enabled
275+ set :
276+ mongodb :
277+ enabled : true
278+ hyperdx :
279+ initContainers :
280+ resources :
281+ limits :
282+ cpu : 1
283+ memory : 1Gi
284+ requests :
285+ cpu : 2
286+ memory : 2Gi
287+ asserts :
288+ - isNotEmpty :
289+ path : spec.template.spec.initContainers
290+ - equal :
291+ path : spec.template.spec.initContainers[0].name
292+ value : wait-for-mongodb
293+ - isNotEmpty :
294+ path : spec.template.spec.initContainers[0].resources
295+ - equal :
296+ path : spec.template.spec.initContainers[0].resources.limits
297+ content :
298+ cpu : 1
299+ memory : 1Gi
300+ - equal :
301+ path : spec.template.spec.initContainers[0].resources.requests
302+ content :
303+ cpu : 2
304+ memory : 2Gi
You can’t perform that action at this time.
0 commit comments