suite: cozystack-api renders with no platform values injected release: name: cozystack-api namespace: cozy-system # The platform injects _cluster through the cozystack-values Secret, so every # case that sets it itself renders fine whether or not values.yaml declares # the key. This case supplies nothing. Drop the declaration from values.yaml # and the render dies on "index of untyped nil" before a single assert runs; # the declaration is the only thing keeping the chart renderable outside a # cluster. No suite-level `templates:` list here on purpose: it would narrow # the render to the listed files and let a later template reintroduce the # same breakage unseen. tests: - it: exposes nothing when _cluster is absent asserts: - template: templates/api-ingress.yaml hasDocuments: count: 0 - template: templates/api-tlsroute.yaml hasDocuments: count: 0