// Package certmanager provides access to the embedded vendored manifests for // installing cert-manager 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. package certmanager import ( _ "embed" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "edge-infra.dev/pkg/k8s/decoder" ) //go:embed manifests.yaml var certmanagerManifests []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(certmanagerManifests) }