feat(common)!: Release v3.0.0-beta2 (#280)

This commit is contained in:
Bernd Schorgers 2024-03-08 08:51:40 +01:00 committed by GitHub
parent 23ae8131da
commit 21e751bc16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
51 changed files with 419 additions and 368 deletions

View file

@ -5,6 +5,8 @@ templates:
- common.yaml
tests:
- it: default metadata should pass
values:
- ../_values/service_main_default.yaml
asserts:
- documentIndex: &ServiceDocument 1
isKind:
@ -23,6 +25,8 @@ tests:
helm.sh/chart: common-test-1.0.0
- it: custom metadata should pass
values:
- ../_values/service_main_default.yaml
set:
service:
main:
@ -51,6 +55,8 @@ tests:
test_label: test
- it: custom metadata with global metadata should pass
values:
- ../_values/service_main_default.yaml
set:
global:
labels:

View file

@ -5,6 +5,8 @@ templates:
- common.yaml
tests:
- it: default should pass
values:
- ../_values/service_main_default.yaml
asserts:
- hasDocuments:
count: 2
@ -17,10 +19,10 @@ tests:
value: RELEASE-NAME
- it: custom name suffix should pass
values:
- ../_values/service_main_default.yaml
set:
service:
main:
nameOverride: http
service.main.nameOverride: http
asserts:
- documentIndex: &ServiceDocument 1
isKind:
@ -29,3 +31,31 @@ tests:
equal:
path: metadata.name
value: RELEASE-NAME-http
- it: multiple should pass
values:
- ../_values/service_main_default.yaml
set:
service:
second:
controller: main
ports:
ui:
port: 8082
asserts:
- hasDocuments:
count: 3
- documentIndex: &ServiceDocumentFirst 1
isKind:
of: Service
- documentIndex: *ServiceDocumentFirst
equal:
path: metadata.name
value: RELEASE-NAME-main
- documentIndex: &ServiceDocumentSecond 2
isKind:
of: Service
- documentIndex: *ServiceDocumentSecond
equal:
path: metadata.name
value: RELEASE-NAME-second

View file

@ -5,6 +5,8 @@ templates:
- common.yaml
tests:
- it: default should pass
values:
- ../_values/service_main_default.yaml
asserts:
- hasDocuments:
count: 2
@ -17,6 +19,8 @@ tests:
value: TCP
- it: explicit TCP should pass
values:
- ../_values/service_main_default.yaml
set:
service.main.ports.http.protocol: TCP
asserts:
@ -29,6 +33,8 @@ tests:
value: TCP
- it: explicit UDP should pass
values:
- ../_values/service_main_default.yaml
set:
service.main.ports.http.protocol: UDP
asserts:
@ -41,6 +47,8 @@ tests:
value: UDP
- it: explicit HTTP should pass
values:
- ../_values/service_main_default.yaml
set:
service.main.ports.http.protocol: HTTP
asserts:
@ -56,6 +64,8 @@ tests:
path: metadata.annotations
- it: explicit HTTPS should pass
values:
- ../_values/service_main_default.yaml
set:
service.main.ports.http.protocol: HTTPS
asserts:
@ -68,6 +78,8 @@ tests:
value: TCP
- it: explicit appProtocol should pass
values:
- ../_values/service_main_default.yaml
set:
service.main.ports.http.appProtocol: kubernetes.io/h2c
asserts:

View file

@ -5,6 +5,8 @@ templates:
- common.yaml
tests:
- it: default should pass
values:
- ../_values/service_main_default.yaml
asserts:
- hasDocuments:
count: 2
@ -16,11 +18,13 @@ tests:
path: spec.ports[0]
value:
name: http
port: 8080
port: 8081
protocol: TCP
targetPort: 8080
targetPort: 8081
- it: custom name should pass
values:
- ../_values/service_main_default.yaml
set:
service:
main:
@ -44,6 +48,8 @@ tests:
targetPort: 8080
- it: custom target port should pass
values:
- ../_values/service_main_default.yaml
set:
service:
main:
@ -60,6 +66,6 @@ tests:
path: spec.ports[0]
value:
name: http
port: 8080
port: 8081
protocol: TCP
targetPort: 80

View file

@ -15,18 +15,17 @@ tests:
port: 80
asserts:
- hasDocuments:
count: 3
count: 2
- documentIndex: &FirstServiceDocument 1
isKind:
of: Service
- documentIndex: &SecondServiceDocument 2
isKind:
of: Service
- documentIndex: *FirstServiceDocument
notExists:
path: spec.allocateLoadBalancerNodePorts
- it: services can be disabled
values:
- ../_values/service_main_default.yaml
set:
service:
main:
@ -39,6 +38,8 @@ tests:
of: Deployment
- it: externalTrafficPolicy should pass for NodePort service
values:
- ../_values/service_main_default.yaml
set:
service:
main:
@ -54,6 +55,8 @@ tests:
value: Local
- it: externalTrafficPolicy should pass for LoadBalancer service
values:
- ../_values/service_main_default.yaml
set:
service:
main:
@ -69,6 +72,8 @@ tests:
value: Local
- it: allocateLoadBalancerNodePorts can be set to true
values:
- ../_values/service_main_default.yaml
set:
service:
main:
@ -84,6 +89,8 @@ tests:
value: true
- it: allocateLoadBalancerNodePorts can be set to false
values:
- ../_values/service_main_default.yaml
set:
service:
main: