mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
fix(common): Release v4.1.1 (#428)
This commit is contained in:
parent
ce1c8adedb
commit
72cbacc0cd
7 changed files with 88 additions and 39 deletions
|
@ -47,3 +47,21 @@ tests:
|
|||
path: spec.template.spec.nodeSelector
|
||||
value:
|
||||
disktype: hdd
|
||||
|
||||
- it: empty defaultPodOptions with pod override can be merged
|
||||
set:
|
||||
defaultPodOptionsStrategy: merge
|
||||
defaultPodOptions: {}
|
||||
controllers:
|
||||
main:
|
||||
pod:
|
||||
nodeSelector:
|
||||
location: apartment
|
||||
documentSelector:
|
||||
path: $[?(@.kind == "Deployment")].metadata.name
|
||||
value: release-name
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.spec.nodeSelector
|
||||
value:
|
||||
location: apartment
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue