mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
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>
This commit is contained in:
parent
9c4c1b1862
commit
8f149f7514
21 changed files with 149 additions and 59 deletions
35
charts/other/app-template/tests/pod/hostPID_test.yaml
Normal file
35
charts/other/app-template/tests/pod/hostPID_test.yaml
Normal file
|
@ -0,0 +1,35 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue