Documentation ¶
Index ¶
- func ValidateClusterRole(role *rbac.ClusterRole) field.ErrorList
- func ValidateClusterRoleBinding(roleBinding *rbac.ClusterRoleBinding) field.ErrorList
- func ValidateClusterRoleBindingUpdate(roleBinding *rbac.ClusterRoleBinding, oldRoleBinding *rbac.ClusterRoleBinding) field.ErrorList
- func ValidateClusterRoleUpdate(role *rbac.ClusterRole, oldRole *rbac.ClusterRole) field.ErrorList
- func ValidatePolicyRule(rule rbac.PolicyRule, isNamespaced bool, fldPath *field.Path) field.ErrorList
- func ValidateRBACName(name string, prefix bool) []string
- func ValidateRole(role *rbac.Role) field.ErrorList
- func ValidateRoleBinding(roleBinding *rbac.RoleBinding) field.ErrorList
- func ValidateRoleBindingSubject(subject rbac.Subject, isNamespaced bool, fldPath *field.Path) field.ErrorList
- func ValidateRoleBindingUpdate(roleBinding *rbac.RoleBinding, oldRoleBinding *rbac.RoleBinding) field.ErrorList
- func ValidateRoleUpdate(role *rbac.Role, oldRole *rbac.Role) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateClusterRole ¶
func ValidateClusterRole(role *rbac.ClusterRole) field.ErrorList
func ValidateClusterRoleBinding ¶
func ValidateClusterRoleBinding(roleBinding *rbac.ClusterRoleBinding) field.ErrorList
func ValidateClusterRoleBindingUpdate ¶
func ValidateClusterRoleBindingUpdate(roleBinding *rbac.ClusterRoleBinding, oldRoleBinding *rbac.ClusterRoleBinding) field.ErrorList
func ValidateClusterRoleUpdate ¶
func ValidateClusterRoleUpdate(role *rbac.ClusterRole, oldRole *rbac.ClusterRole) field.ErrorList
func ValidatePolicyRule ¶ added in v1.11.7
func ValidatePolicyRule(rule rbac.PolicyRule, isNamespaced bool, fldPath *field.Path) field.ErrorList
ValidatePolicyRule is exported to allow types outside of the RBAC API group to embed a rbac.PolicyRule and reuse this validation logic
func ValidateRBACName ¶ added in v1.11.7
ValidateRBACName is exported to allow types outside of the RBAC API group to reuse this validation logic Minimal validation of names for roles and bindings. Identical to the validation for Openshift. See: * https://github.com/kubernetes/kubernetes/blob/60db50/pkg/api/validation/name.go * https://github.com/openshift/origin/blob/388478/pkg/api/helpers.go
func ValidateRoleBinding ¶
func ValidateRoleBinding(roleBinding *rbac.RoleBinding) field.ErrorList
func ValidateRoleBindingSubject ¶ added in v1.11.7
func ValidateRoleBindingSubject(subject rbac.Subject, isNamespaced bool, fldPath *field.Path) field.ErrorList
ValidateRoleBindingSubject is exported to allow types outside of the RBAC API group to embed a rbac.Subject and reuse this validation logic
func ValidateRoleBindingUpdate ¶
func ValidateRoleBindingUpdate(roleBinding *rbac.RoleBinding, oldRoleBinding *rbac.RoleBinding) field.ErrorList
Types ¶
This section is empty.