mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
* fix(common): Clean leftover `secret` behavior under `envFrom` * fix(common) wrong indentation in _cronjob.tpl (#99) * fixed wrong indentation, cronjob + configmaps throws an error otherwise * feat: Update code-server image tag to 4.9.1 * Allow setting `ttlSecondsAfterFinished` for CronJobs Co-authored-by: loeken <loeken@internetz.me>
28 lines
697 B
YAML
28 lines
697 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:
|
|
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
|