// Package configconnector provides access to the embedded vendored manifests for // installing K8s Config Connector to K8s clusters. This package only provides a // single function for loading the embedded manifests, and all other functionality // should be implemented in the appropriate `pkg/` directory. // // https://cloud.google.com/config-connector/docs package configconnector import ( _ "embed" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "edge-infra.dev/pkg/k8s/decoder" ) //go:embed manifests.yaml var manifests []byte // LoadManifests reads the manifests from the embedded byte mapping containing // vendored KCC installation manifests, and decodes the data into unstructured.Unstructured // objects that can be applied to the K8s API using controller-runtime's client // func LoadManifests() ([]*unstructured.Unstructured, error) { return decoder.DecodeYAML(manifests) }