util

package
v0.0.0-...-8d97484 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func ContainsNamespace(namespaces []corev1.Namespace, name string) bool

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

func ContainsSubject(subjects []rbacv1.Subject, subject rbacv1.Subject) bool

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

func MapNamespaces(vs []corev1.Namespace) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL