helm-charts/charts/other/app-template/tests/pod/hostIPC_test.yaml
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 8f149f7514
feat: Release common version 1.5.0 (#141)
* feat(common): omit replicas field in Deployment if null is given (#134)
* feat(common): Add cron job backoff limit (#137)
* feat(common): add hostPID and hostIPC (#140)

Signed-off-by: Maurits <75321636+maurits-funda@users.noreply.github.com>
Signed-off-by: Gabe Cook <gabe565@gmail.com>
Signed-off-by: Angel Nunez Mencias <git@angelnu.com>
Co-authored-by: Maurits <75321636+maurits-funda@users.noreply.github.com>
Co-authored-by: Gabe Cook <gabe565@gmail.com>
Co-authored-by: Angel Nunez Mencias <git@angelnu.com>
2023-05-08 11:15:49 +02:00

35 lines
726 B
YAML

suite: pod security
templates:
- common.yaml
tests:
- it: default should pass
asserts:
- documentIndex: 0
isKind:
of: Deployment
- documentIndex: 0
isNull:
path: spec.template.spec.hostIPC
- it: hostIPC disabled should pass
set:
hostIPC: false
asserts:
- documentIndex: 0
isKind:
of: Deployment
- documentIndex: 0
isNull:
path: spec.template.spec.hostIPC
- it: hostIPC enabled should pass
set:
hostIPC: true
asserts:
- documentIndex: 0
isKind:
of: Deployment
- documentIndex: 0
equal:
path: spec.template.spec.hostIPC
value: true