// Package edgeinfo provides access to the embedded vendored manifests related // to the edge-info ConfigMap available on all Edge 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 edgeinfo import ( _ "embed" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "edge-infra.dev/pkg/k8s/decoder" ) //go:embed rbac/rbac.yaml var rbac []byte // RBAC reads the embedded K8s RBAC manifests required for consumers to read // the edge-info ConfigMap and returns them func RBAC() ([]*unstructured.Unstructured, error) { return decoder.DecodeYAML(rbac) }