diff --git a/pkg/action/install.go b/pkg/action/install.go index 38355491a..99ec9f0ac 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -187,6 +187,10 @@ func (i *Install) installCRDs(crds []chart.CRD) error { return fmt.Errorf("failed to install CRD %s: %w", obj.Name, err) } + if res == nil { + return fmt.Errorf("failed to install CRD %s: resources are empty", obj.Name) + } + // Send them to Kube if _, err := i.cfg.KubeClient.Create( res,