mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 08:37:03 +02:00
# Removed - Promtail add-on has been removed # Fixed - Fixed httpGet probe whitespace rendering (#76) - Fixed Secret management for ServiceAccounts (fixes #78) - Fixed code-server add-on Service rendering # Added - Added support for Gateway API Routes (#59) # Changed - Services and their ports are now assumed enabled by default - Updated `code-server` image to v4.8.3 - Updated `netshoot` image to v0.8 Signed-off-by: András Maróy <andras@maroy.hu> Signed-off-by: András Maróy <andras@maroy.hu> Co-authored-by: András Maróy <andras@maroy.hu> Co-authored-by: pando85 <pando855@gmail.com>
183 lines
4.8 KiB
YAML
183 lines
4.8 KiB
YAML
suite: route values
|
|
templates:
|
|
- common.yaml
|
|
tests:
|
|
- it: setting gateway should pass
|
|
set:
|
|
route.main:
|
|
enabled: true
|
|
parentRefs:
|
|
- name: parentName
|
|
namespace: parentNamespace
|
|
asserts:
|
|
- documentIndex: &HTTPRouteDocument 2
|
|
isKind:
|
|
of: HTTPRoute
|
|
- documentIndex: *HTTPRouteDocument
|
|
equal:
|
|
path: spec.parentRefs[0].name
|
|
value: parentName
|
|
- documentIndex: *HTTPRouteDocument
|
|
equal:
|
|
path: spec.parentRefs[0].namespace
|
|
value: parentNamespace
|
|
|
|
- it: custom host and path should pass
|
|
set:
|
|
route.main:
|
|
enabled: true
|
|
parentRefs:
|
|
- name: parentName
|
|
namespace: parentNamespace
|
|
hostnames:
|
|
- chart-test.local
|
|
asserts:
|
|
- documentIndex: &HTTPRouteDocument 2
|
|
isKind:
|
|
of: HTTPRoute
|
|
- documentIndex: *HTTPRouteDocument
|
|
equal:
|
|
path: spec.hostnames[0]
|
|
value: chart-test.local
|
|
|
|
- it: path matches should only be used for HTTPRoutes
|
|
set:
|
|
route:
|
|
main:
|
|
enabled: true
|
|
kind: HTTPRoute
|
|
parentRefs:
|
|
- name: parentName
|
|
namespace: parentNamespace
|
|
rules:
|
|
- backendRefs:
|
|
- name: test
|
|
namespace: test
|
|
matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /test
|
|
grpc:
|
|
enabled: true
|
|
kind: GRPCRoute
|
|
parentRefs:
|
|
- name: parentName
|
|
namespace: parentNamespace
|
|
rules:
|
|
- backendRefs:
|
|
- name: test
|
|
namespace: test
|
|
matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /test
|
|
tcp:
|
|
enabled: true
|
|
kind: TCPRoute
|
|
parentRefs:
|
|
- name: parentName
|
|
namespace: parentNamespace
|
|
rules:
|
|
- backendRefs:
|
|
- name: test
|
|
namespace: test
|
|
matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /test
|
|
tls:
|
|
enabled: true
|
|
kind: TLSRoute
|
|
parentRefs:
|
|
- name: parentName
|
|
namespace: parentNamespace
|
|
rules:
|
|
- backendRefs:
|
|
- name: test
|
|
namespace: test
|
|
matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /test
|
|
udp:
|
|
enabled: true
|
|
kind: UDPRoute
|
|
parentRefs:
|
|
- name: parentName
|
|
namespace: parentNamespace
|
|
rules:
|
|
- backendRefs:
|
|
- name: test
|
|
namespace: test
|
|
matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /test
|
|
asserts:
|
|
- documentIndex: &HTTPRouteDocument 2
|
|
isKind:
|
|
of: GRPCRoute
|
|
- documentIndex: &HTTPRouteDocument 2
|
|
isNull:
|
|
path: spec.rules[0].matches
|
|
- documentIndex: &HTTPRouteDocument 3
|
|
isKind:
|
|
of: HTTPRoute
|
|
- documentIndex: &HTTPRouteDocument 3
|
|
equal:
|
|
path: spec.rules[0].matches
|
|
value:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /test
|
|
- documentIndex: &HTTPRouteDocument 4
|
|
isKind:
|
|
of: TCPRoute
|
|
- documentIndex: &HTTPRouteDocument 4
|
|
isNull:
|
|
path: spec.rules[0].matches
|
|
- documentIndex: &HTTPRouteDocument 5
|
|
isKind:
|
|
of: TLSRoute
|
|
- documentIndex: &HTTPRouteDocument 5
|
|
isNull:
|
|
path: spec.rules[0].matches
|
|
- documentIndex: &HTTPRouteDocument 6
|
|
isKind:
|
|
of: UDPRoute
|
|
- documentIndex: &HTTPRouteDocument 6
|
|
isNull:
|
|
path: spec.rules[0].matches
|
|
|
|
- it: hostnames shouldn't be used for TCPRoutes and UDPRoutes
|
|
set:
|
|
route:
|
|
main:
|
|
enabled: true
|
|
kind: TCPRoute
|
|
hostnames:
|
|
- chart-test.local
|
|
parentRefs:
|
|
- name: parentName
|
|
namespace: parentNamespace
|
|
udp:
|
|
enabled: true
|
|
kind: UDPRoute
|
|
hostnames:
|
|
- chart-test.local
|
|
parentRefs:
|
|
- name: parentName
|
|
namespace: parentNamespace
|
|
asserts:
|
|
- documentIndex: &HTTPRouteDocument 2
|
|
isKind:
|
|
of: TCPRoute
|
|
- documentIndex: &HTTPRouteDocument 2
|
|
isNull:
|
|
path: spec.hostnames
|
|
- documentIndex: &HTTPRouteDocument 3
|
|
isKind:
|
|
of: UDPRoute
|
|
- documentIndex: &HTTPRouteDocument 3
|
|
isNull:
|
|
path: spec.hostnames
|