fix(common): Release v4.1.1 (#428)

This commit is contained in:
Bernd Schorgers 2025-06-12 13:19:46 +02:00 committed by GitHub
parent ce1c8adedb
commit 72cbacc0cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 88 additions and 39 deletions

View file

@ -136,3 +136,48 @@ tests:
statusCode: 301
- notExists:
path: spec.rules[0].backendRefs[0]
- it: automatic service and port reference should pass with empty rules
values:
- ../_values/service_main_default.yaml
set:
route.main:
parentRefs:
- name: parentName
namespace: parentNamespace
rules: []
documentSelector:
path: $[?(@.kind == "HTTPRoute")].metadata.name
value: release-name
asserts:
- equal:
path: spec.rules[0].backendRefs[0]
value:
group: ""
kind: Service
name: release-name
namespace: NAMESPACE
port: 8081
weight: 1
- it: automatic service and port reference should pass with absent rules field
values:
- ../_values/service_main_default.yaml
set:
route.main:
parentRefs:
- name: parentName
namespace: parentNamespace
documentSelector:
path: $[?(@.kind == "HTTPRoute")].metadata.name
value: release-name
asserts:
- equal:
path: spec.rules[0].backendRefs[0]
value:
group: ""
kind: Service
name: release-name
namespace: NAMESPACE
port: 8081
weight: 1