mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
* fix(common): fix incorrect route default values (#91) * fix(common): make `sectionName` optional for route parentRefs * fix(common): name primary route correctly * feat(common): add controller.type of cronjob (#87) * fix(common): Fix invalid persistence type message (#85) * feat(common): Allow setting container restartPolicy Co-authored-by: András Maróy <andras@maroy.hu> Co-authored-by: loeken <loeken@internetz.me> Co-authored-by: Han Cen <hi@chamburr.com>
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
suite: ingress service reference
|
|
templates:
|
|
- common.yaml
|
|
tests:
|
|
- it: default should pass
|
|
set:
|
|
route.main:
|
|
enabled: true
|
|
parentRefs:
|
|
- name: parentName
|
|
namespace: parentNamespace
|
|
asserts:
|
|
- documentIndex: &HTTPRouteDocument 2
|
|
isKind:
|
|
of: HTTPRoute
|
|
- documentIndex: *HTTPRouteDocument
|
|
equal:
|
|
path: spec.rules[0].backendRefs[0]
|
|
value:
|
|
group: ""
|
|
kind: Service
|
|
name: RELEASE-NAME
|
|
namespace: NAMESPACE
|
|
port: null
|
|
weight: 1
|
|
|
|
- it: custom service reference should pass
|
|
set:
|
|
route.main:
|
|
enabled: true
|
|
parentRefs:
|
|
- name: parentName
|
|
namespace: parentNamespace
|
|
rules:
|
|
- backendRefs:
|
|
- group: test
|
|
name: pathService
|
|
port: 1234
|
|
namespace: serviceNamespace
|
|
weight: 123
|
|
asserts:
|
|
- documentIndex: &HTTPRouteDocument 2
|
|
isKind:
|
|
of: HTTPRoute
|
|
- documentIndex: *HTTPRouteDocument
|
|
equal:
|
|
path: spec.rules[0].backendRefs[0]
|
|
value:
|
|
group: test
|
|
kind: Service
|
|
name: pathService
|
|
namespace: serviceNamespace
|
|
port: 1234
|
|
weight: 123
|