Documentation
¶
Index ¶
- func ContainsClusterRoleBinding(crbs []rbacv1.ClusterRoleBinding, name string) bool
- func ContainsNamespace(namespaces []corev1.Namespace, name string) bool
- func ContainsRoleBinding(rbs []rbacv1.RoleBinding, name, ns string) bool
- func ContainsSubject(subjects []rbacv1.Subject, subject rbacv1.Subject) bool
- func IsClusterRoleBindingEqual(crb1 rbacv1.ClusterRoleBinding, crb2 rbacv1.ClusterRoleBinding) bool
- func IsRoleBindingEqual(rb1 rbacv1.RoleBinding, rb2 rbacv1.RoleBinding) bool
- func MapNamespaces(vs []corev1.Namespace) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsClusterRoleBinding ¶
func ContainsClusterRoleBinding(crbs []rbacv1.ClusterRoleBinding, name string) bool
ContainsClusterRoleBinding returns true, if the list of CRBs contains a Binding with the specified name
func ContainsNamespace ¶
ContainsNamespace returns true, if the list of namespaces contains a object with the specified name
func ContainsRoleBinding ¶
func ContainsRoleBinding(rbs []rbacv1.RoleBinding, name, ns string) bool
ContainsRoleBinding returns true, if the list of RBs contains a Binding with the specified name and namespace
func ContainsSubject ¶
ContainsSubject returns true, if the list of Subjects contains the given subject
func IsClusterRoleBindingEqual ¶
func IsClusterRoleBindingEqual(crb1 rbacv1.ClusterRoleBinding, crb2 rbacv1.ClusterRoleBinding) bool
IsClusterRoleBindingEqual returns true if both objects are named equal and have the same RoleRef and Subjects
func IsRoleBindingEqual ¶
func IsRoleBindingEqual(rb1 rbacv1.RoleBinding, rb2 rbacv1.RoleBinding) bool
IsRoleBindingEqual returns true if both objects are named equal in the same namespace and have the same RoleRef and Subjects
func MapNamespaces ¶
Types ¶
This section is empty.