mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
* 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>
35 lines
726 B
YAML
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.hostPID
|
|
|
|
- it: hostPID disabled should pass
|
|
set:
|
|
hostPID: false
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
isNull:
|
|
path: spec.template.spec.hostPID
|
|
|
|
- it: hostPID enabled should pass
|
|
set:
|
|
hostPID: true
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.hostPID
|
|
value: true
|