func ParseMultiDocumentYAML(manifest string, kubeClient kube.Interface) ([]*resource.Info, error) {
	resources := make([]*resource.Info, 0)
	res, err := kubeClient.Build(bytes.NewBufferString(manifest), false)
	if err != nil {
		return nil, fmt.Errorf("Parsing the CRDs from the rendered manifest was not successful: %w", err)
	}
	resources = append(resources, res...)
	return resources, nil
}
Build a list of resource.Info objects from a rendered manifest.
package helm
import (
	"bytes"
	"fmt"
	"helm.sh/helm/v3/pkg/kube"
	apierrors "k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/cli-runtime/pkg/resource"
)
const (
	customResourceDefinitionGroup = "apiextensions.k8s.io"
	customResourceDefinitionKind  = "CustomResourceDefinition"
)