# Functions
BuildNormalizedPolicyRulesMap returns a map of Normalized PolicyRules built from the the provided slice of PolicyRules.
NewKubernetesRolesDatabase returns an implementation of the RolesDatabase interface that utilizes a Kubernetes controller runtime client to store and retrieve Kargo Roles stored Kubernetes in the form of ServiceAccount/Role/RoleBinding trios.
NormalizePolicyRules returns a predictably ordered slice of Normalized PolicyRules built from the the provided slice of PolicyRules.
PolicyRulesMapToSlice returns a slice of PolicyRules built from the provided map.
ResourcesToRole converts the provided ServiceAccount, Role, and RoleBinding into a Kargo Role with normalized policy rules.
RoleToResources converts the provided Kargo Role into a ServiceAccount/Role/RoleBinding trio.
RuleKey returns a single string that combines the provided group, resource, and if non-empty, resourceName.
# Interfaces
RolesDatabase is an interface for the Kargo Roles store.