mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 17:07:04 +02:00
feat(common): Release common 4.0.0 (#398)
Co-authored-by: lab-assistant[bot] <180935599+lab-assistant[bot]@users.noreply.github.com>
This commit is contained in:
parent
1e210f43e3
commit
a01a89cb13
327 changed files with 11181 additions and 7330 deletions
|
@ -1,10 +1,5 @@
|
|||
---
|
||||
suite: rbac validations
|
||||
|
||||
set:
|
||||
serviceAccount:
|
||||
name: test-sa
|
||||
|
||||
suite: rbac - validations
|
||||
templates:
|
||||
- common.yaml
|
||||
values:
|
||||
|
@ -19,10 +14,17 @@ tests:
|
|||
rules: {}
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: |
|
||||
You selected: `InvalidRole`. Type must be one of:
|
||||
- Role
|
||||
- ClusterRole
|
||||
errorPattern: "values don't meet the specifications of the schema"
|
||||
|
||||
- it: rolebinding type must be valid
|
||||
set:
|
||||
rbac:
|
||||
bindings:
|
||||
invalidRole:
|
||||
type: InvalidRole
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorPattern: "values don't meet the specifications of the schema"
|
||||
|
||||
- it: role rules can't be empty
|
||||
set:
|
||||
|
@ -44,4 +46,12 @@ tests:
|
|||
roleRef: {}
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "If not using identifier roleRef must have a `name` key"
|
||||
errorPattern: "values don't meet the specifications of the schema"
|
||||
|
||||
- it: serviceAccount reference to non-existing serviceAccount should fail
|
||||
set:
|
||||
rbac.bindings.defaultBinding.subjects:
|
||||
- identifier: main
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "No enabled ServiceAccount found with this identifier. (rolebinding: 'defaultBinding', identifier: 'main')"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue