I doubt the crd lookup would return a list...

This commit is contained in:
Kjeld Schouten
2024-02-26 20:07:37 +01:00
parent a077c827ee
commit 89bcb5caca

View File

@@ -5,7 +5,7 @@
{{- $lookupMiddlewares := (lookup "apiextensions.k8s.io/v1" "CustomResourceDefinition" "" $crd) -}}
{{/* If there are items, re-assign the variable */}}
{{- if and $lookupMiddlewares $lookupMiddlewares.items -}}
{{- if $lookupMiddlewares -}}
{{- else -}}
{{- fail (printf "%s have to be installed first" $missing) -}}
{{- end -}}