File tree Expand file tree Collapse file tree 1 file changed +82
-0
lines changed
Expand file tree Collapse file tree 1 file changed +82
-0
lines changed Original file line number Diff line number Diff line change @@ -431,3 +431,85 @@ tests:
431431 content :
432432 name : CLICKHOUSE_PASSWORD
433433 value : " custom-password"
434+
435+ - it : should render custom environment variables when specified
436+ set :
437+ otel :
438+ enabled : true
439+ image :
440+ repository : hyperdx/hyperdx-otel-collector
441+ tag : 2-beta
442+ env :
443+ - name : CUSTOM_VAR
444+ value : " custom-value"
445+ - name : DEBUG_MODE
446+ value : " true"
447+ - name : SECRET_TOKEN
448+ valueFrom :
449+ secretKeyRef :
450+ name : my-secret
451+ key : token
452+ hyperdx :
453+ image :
454+ repository : hyperdx/hyperdx
455+ tag : 2-beta
456+ logLevel : info
457+ clickhouse :
458+ config :
459+ users :
460+ otelUserPassword : test-password
461+ release :
462+ name : test-release
463+ asserts :
464+ - documentIndex : 0
465+ isKind :
466+ of : Deployment
467+ - documentIndex : 0
468+ contains :
469+ path : spec.template.spec.containers[0].env
470+ content :
471+ name : CUSTOM_VAR
472+ value : " custom-value"
473+ - documentIndex : 0
474+ contains :
475+ path : spec.template.spec.containers[0].env
476+ content :
477+ name : DEBUG_MODE
478+ value : " true"
479+ - documentIndex : 0
480+ contains :
481+ path : spec.template.spec.containers[0].env
482+ content :
483+ name : SECRET_TOKEN
484+ valueFrom :
485+ secretKeyRef :
486+ name : my-secret
487+ key : token
488+
489+ - it : should not render custom environment variables when not specified
490+ set :
491+ otel :
492+ enabled : true
493+ image :
494+ repository : hyperdx/hyperdx-otel-collector
495+ tag : 2-beta
496+ hyperdx :
497+ image :
498+ repository : hyperdx/hyperdx
499+ tag : 2-beta
500+ logLevel : info
501+ clickhouse :
502+ config :
503+ users :
504+ otelUserPassword : test-password
505+ release :
506+ name : test-release
507+ asserts :
508+ - documentIndex : 0
509+ isKind :
510+ of : Deployment
511+ - documentIndex : 0
512+ notContains :
513+ path : spec.template.spec.containers[0].env
514+ content :
515+ name : CUSTOM_VAR
You can’t perform that action at this time.
0 commit comments