func LoadConfig(configPath string) (c v1alpha1.ImageSetConfiguration, err error) {
	data, err := ioutil.ReadFile(configPath)
	if err != nil {
		return c, err
	}
	typeMeta, err := getTypeMeta(data)
	if err != nil {
		return c, err
	}
	switch typeMeta.GroupVersionKind() {
	case v1alpha1.GroupVersion.WithKind(v1alpha1.ImageSetConfigurationKind):
		return v1alpha1.LoadConfig(data)
	}
	return c, fmt.Errorf("config GVK not recognized: %s", typeMeta.GroupVersionKind())
}
TODO(estroz): create interface scheme such that configuration and metadata
versions do not matter to the caller.
See https://github.com/kubernetes-sigs/controller-runtime/blob/master/pkg/config/config.go
package config
import (
	"fmt"
	"io/ioutil"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"sigs.k8s.io/yaml"
	"github.com/RedHatGov/bundle/pkg/config/v1alpha1"
	"github.com/openshift/installer/pkg/validate"
	"github.com/sirupsen/logrus"
)