mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
28 lines
730 B
YAML
28 lines
730 B
YAML
suite: container envFrom values
|
|
templates:
|
|
- common.yaml
|
|
tests:
|
|
- it: default should pass
|
|
asserts:
|
|
- documentIndex: &DeploymentDoc 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: *DeploymentDoc
|
|
isNull:
|
|
path: spec.template.spec.containers[0].envFrom
|
|
|
|
- it: explicit envFrom should pass
|
|
set:
|
|
controllers.main.containers.main.envFrom:
|
|
- secretRef:
|
|
name: myCustomSecret
|
|
asserts:
|
|
- documentIndex: &DeploymentDoc 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: *DeploymentDoc
|
|
equal:
|
|
path: spec.template.spec.containers[0].envFrom[0]
|
|
value:
|
|
secretRef:
|
|
name: myCustomSecret
|