2023-12-14 15:17:09 +00:00
|
|
|
suite: Controller > ConfigMap
|
|
|
|
templates:
|
|
|
|
- controller-configmap.yaml
|
|
|
|
|
|
|
|
tests:
|
|
|
|
- it: should create a ConfigMap
|
|
|
|
asserts:
|
|
|
|
- hasDocuments:
|
|
|
|
count: 1
|
|
|
|
- isKind:
|
|
|
|
of: ConfigMap
|
|
|
|
- equal:
|
|
|
|
path: metadata.name
|
|
|
|
value: RELEASE-NAME-ingress-nginx-controller
|
2024-04-04 19:50:05 +00:00
|
|
|
|
|
|
|
- it: should create a ConfigMap with templated values if `controller.config` contains templates
|
|
|
|
set:
|
|
|
|
controller.config:
|
2024-08-26 20:30:48 +00:00
|
|
|
template: "test.{{ .Release.Namespace }}.svc.kubernetes.local"
|
|
|
|
integer: 12345
|
|
|
|
boolean: true
|
2024-04-04 19:50:05 +00:00
|
|
|
asserts:
|
|
|
|
- equal:
|
2024-08-26 20:30:48 +00:00
|
|
|
path: data.template
|
|
|
|
value: test.NAMESPACE.svc.kubernetes.local
|
|
|
|
- equal:
|
|
|
|
path: data.integer
|
|
|
|
value: "12345"
|
|
|
|
- equal:
|
|
|
|
path: data.boolean
|
2024-04-04 19:50:05 +00:00
|
|
|
value: "true"
|