fix(action): crd resources can be empty

Signed-off-by: Manuel Alonso <434575+manute@users.noreply.github.com>
pull/31578/head
Manuel Alonso 1 month ago
parent 722482b77d
commit 268593bf2e
No known key found for this signature in database
GPG Key ID: 9315A3EFCBD4D56A

@ -186,6 +186,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