mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
feat(common)!: Release common-3.0.0 (#284)
This commit is contained in:
parent
a27c4f6124
commit
3981facca6
16 changed files with 124 additions and 116 deletions
|
@ -52,6 +52,29 @@ tests:
|
|||
port:
|
||||
number: 1234
|
||||
|
||||
- it: custom service reference with template should pass
|
||||
set:
|
||||
ingress.main:
|
||||
hosts:
|
||||
- host: chart-test.local
|
||||
paths:
|
||||
- path: /
|
||||
service:
|
||||
name: "{{ .Release.Name }}"
|
||||
port: 1234
|
||||
asserts:
|
||||
- documentIndex: &IngressDocument 1
|
||||
isKind:
|
||||
of: Ingress
|
||||
- documentIndex: *IngressDocument
|
||||
equal:
|
||||
path: spec.rules[0].http.paths[0].backend
|
||||
value:
|
||||
service:
|
||||
name: RELEASE-NAME
|
||||
port:
|
||||
number: 1234
|
||||
|
||||
- it: multiple hosts with port name references should pass
|
||||
set:
|
||||
service:
|
||||
|
@ -72,14 +95,14 @@ tests:
|
|||
- path: /
|
||||
pathType: Prefix
|
||||
service:
|
||||
name: main
|
||||
identifier: main
|
||||
port: http
|
||||
- host: http2.chart-test.local
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
service:
|
||||
name: main
|
||||
identifier: main
|
||||
port: http2
|
||||
asserts:
|
||||
- documentIndex: &IngressDocument 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue