mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 17:07:04 +02:00
* fix(common):: Fix Integer style image tags (fixes #128) * feat(common): Reload pod on secret change (#129) * feat(common): Update code-server to v4.11.0 * fix(common): quote command and args strings (#124) * feat(common): Update gluetun to v3.33.0 --------- Signed-off-by: angelnu <git@angelnu.com> Signed-off-by: Maurits van Mastrigt <maurits@funda.nl> Co-authored-by: Angel Nunez Mencias <github@angelnu.com> Co-authored-by: Maurits <75321636+maurits-funda@users.noreply.github.com>
73 lines
1.5 KiB
YAML
73 lines
1.5 KiB
YAML
suite: container args override
|
|
templates:
|
|
- common.yaml
|
|
tests:
|
|
- it: default should pass
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
isNull:
|
|
path: spec.template.spec.containers[0].args
|
|
|
|
- it: single string should pass
|
|
set:
|
|
args: sleep infinity
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].args
|
|
value:
|
|
- sleep infinity
|
|
|
|
- it: multiline string should pass
|
|
set:
|
|
args: |
|
|
echo hello
|
|
echo world
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].args
|
|
value:
|
|
- |
|
|
echo hello
|
|
echo world
|
|
|
|
- it: single quoted string should pass
|
|
set:
|
|
args: "sleep infinity"
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].args
|
|
value:
|
|
- sleep infinity
|
|
|
|
- it: list of strings should pass
|
|
set:
|
|
args:
|
|
- sleep
|
|
- infinity
|
|
- "test"
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].args
|
|
value:
|
|
- sleep
|
|
- infinity
|
|
- test
|