1 // Package edgeinfo provides access to the embedded vendored manifests related 2 // to the edge-info ConfigMap available on all Edge clusters. 3 // 4 // This package only provides a single 5 // function for loading the embedded manifests, and all other functionality 6 // should be implemented in the appropriate `pkg/` directory. 7 package edgeinfo 8 9 import ( 10 _ "embed" 11 12 "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" 13 14 "edge-infra.dev/pkg/k8s/decoder" 15 ) 16 17 //go:embed rbac/rbac.yaml 18 var rbac []byte 19 20 // RBAC reads the embedded K8s RBAC manifests required for consumers to read 21 // the edge-info ConfigMap and returns them 22 func RBAC() ([]*unstructured.Unstructured, error) { 23 return decoder.DecodeYAML(rbac) 24 } 25