Chart: Add controller.service.external.labels & controller.service.internal.labels. (#12704)

This commit is contained in:
Samuel Arogbonlo 2025-01-22 08:58:37 +01:00 committed by GitHub
parent 59a0da769d
commit fe91e8e422
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 40 additions and 0 deletions

View file

@ -62,3 +62,13 @@ tests:
- equal:
path: spec.trafficDistribution
value: PreferClose
- it: should create a Service with labels if `controller.service.external.labels` is set
set:
controller.service.external.enabled: true
controller.service.external.labels:
external-dns.alpha.kubernetes.io/hostname: external.example.com
asserts:
- equal:
path: metadata.labels["external-dns.alpha.kubernetes.io/hostname"]
value: external.example.com