fix(action): crd resources can be empty

Signed-off-by: Manuel Alonso <434575+manute@users.noreply.github.com>
(cherry picked from commit 268593bf2e)
release-4.1
Manuel Alonso 4 months ago committed by Scott Rigby
parent 0fec40f9b6
commit 10d6067265
No known key found for this signature in database
GPG Key ID: C7C6FBB5B91C1155

@ -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,

Loading…
Cancel
Save