mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-05 09:16:21 -03:00
I doubt the crd lookup would return a list...
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user