mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
feat(common)!: Release v3.0.0-beta1 (#278)
This commit is contained in:
parent
deafcf75a1
commit
b78483b0b8
88 changed files with 3697 additions and 1209 deletions
|
@ -1,14 +1,19 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/helm-unittest/helm-unittest/main/schema/helm-testsuite.json
|
||||
suite: networkPolicy metadata
|
||||
|
||||
set:
|
||||
networkpolicies.main:
|
||||
controller: main
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
rules: {}
|
||||
|
||||
templates:
|
||||
- common.yaml
|
||||
tests:
|
||||
- it: default metadata should pass
|
||||
set:
|
||||
networkpolicies:
|
||||
main:
|
||||
enabled: true
|
||||
asserts:
|
||||
- documentIndex: &NetworkPolicyDocument 2
|
||||
isKind:
|
||||
|
@ -29,7 +34,6 @@ tests:
|
|||
set:
|
||||
networkpolicies:
|
||||
main:
|
||||
enabled: true
|
||||
annotations:
|
||||
test_annotation: test
|
||||
labels:
|
||||
|
@ -62,7 +66,6 @@ tests:
|
|||
global_annotation: test
|
||||
networkpolicies:
|
||||
main:
|
||||
enabled: true
|
||||
annotations:
|
||||
test_annotation: test
|
||||
labels:
|
||||
|
|
|
@ -8,7 +8,11 @@ tests:
|
|||
set:
|
||||
networkpolicies:
|
||||
main:
|
||||
enabled: true
|
||||
controller: main
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
rules: {}
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 3
|
||||
|
@ -24,7 +28,11 @@ tests:
|
|||
set:
|
||||
networkpolicies:
|
||||
main:
|
||||
enabled: true
|
||||
controller: main
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
rules: {}
|
||||
nameOverride: block-ingress
|
||||
asserts:
|
||||
- documentIndex: &NetworkPolicyDocument 2
|
||||
|
|
|
@ -8,8 +8,8 @@ tests:
|
|||
set:
|
||||
networkpolicies:
|
||||
main:
|
||||
enabled: true
|
||||
controller: ""
|
||||
rules: {}
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "controller reference or podSelector is required for NetworkPolicy. (NetworkPolicy main)"
|
||||
|
@ -18,8 +18,9 @@ tests:
|
|||
set:
|
||||
networkpolicies:
|
||||
main:
|
||||
enabled: true
|
||||
controller: main
|
||||
policyTypes: []
|
||||
rules: {}
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "policyTypes is required for NetworkPolicy. (NetworkPolicy main)"
|
||||
|
@ -28,9 +29,10 @@ tests:
|
|||
set:
|
||||
networkpolicies:
|
||||
main:
|
||||
enabled: true
|
||||
controller: main
|
||||
policyTypes:
|
||||
- test
|
||||
rules: {}
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "Not a valid policyType for NetworkPolicy. (NetworkPolicy main, value test)"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
suite: NetworkPolicy values
|
||||
templates:
|
||||
- common.yaml
|
||||
|
||||
tests:
|
||||
- it: main networkpolicy is disabled by default
|
||||
asserts:
|
||||
|
@ -17,9 +18,12 @@ tests:
|
|||
|
||||
- it: main networkpolicy can be enabled
|
||||
set:
|
||||
networkpolicies:
|
||||
main:
|
||||
enabled: true
|
||||
networkpolicies.main:
|
||||
controller: main
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
rules: {}
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 3
|
||||
|
@ -37,8 +41,11 @@ tests:
|
|||
set:
|
||||
networkpolicies:
|
||||
main:
|
||||
enabled: true
|
||||
controller: main
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
rules: {}
|
||||
asserts:
|
||||
- documentIndex: &NetworkPolicyDocument 2
|
||||
isKind:
|
||||
|
@ -56,9 +63,12 @@ tests:
|
|||
set:
|
||||
networkpolicies:
|
||||
main:
|
||||
enabled: true
|
||||
controller: main
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
podSelector: {}
|
||||
rules: {}
|
||||
asserts:
|
||||
- documentIndex: &NetworkPolicyDocument 2
|
||||
isKind:
|
||||
|
@ -72,8 +82,10 @@ tests:
|
|||
set:
|
||||
networkpolicies:
|
||||
main:
|
||||
enabled: true
|
||||
controller: main
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
rules:
|
||||
ingress:
|
||||
- {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue