make sure the default behavior is the same as before this feature

This commit is contained in:
Karitham 2024-04-15 18:55:20 +02:00
parent 5c098047b1
commit 638d50a284
No known key found for this signature in database
1 changed files with 14 additions and 0 deletions

View File

@ -90,3 +90,17 @@ tests:
path: spec.loadBalancerIP
- notExists:
path: spec.loadBalancerSourceRanges
- it: does not render loadBalancerClass by default even when type is LoadBalancer
template: templates/gitea/http-svc.yaml
set:
service:
http:
type: LoadBalancer
loadBalancerIP: "1.2.3.4"
asserts:
- notExists:
path: spec.loadBalancerClass
- equal:
path: spec.loadBalancerIP
value: "1.2.3.4"