rbac

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterRoleBindingNeedsUpdate

func ClusterRoleBindingNeedsUpdate(desiredRoleBinding, existingRoleBinding *rbacv1.ClusterRoleBinding) bool

ClusterRoleBindingNeedsUpdate ClusterRoleBinding needs an update with the list of subjects has changed

func ClusterRoleNeedsUpdate added in v0.30.2

func ClusterRoleNeedsUpdate(desiredClusterRole, existingClusterRole *rbacv1.ClusterRole) bool

func CreateOrUpdateClusterRole

func CreateOrUpdateClusterRole(c base.K8sClientWithLogging, ctx context.Context, clusterRole *rbacv1.ClusterRole) error

func CreateOrUpdateClusterRoleBinding

func CreateOrUpdateClusterRoleBinding(c base.K8sClientWithLogging, ctx context.Context, clusterRoleBinding *rbacv1.ClusterRoleBinding) error

func CreateOrUpdateRole

func CreateOrUpdateRole(c base.K8sClientWithLogging, ctx context.Context, namespace string, role *rbacv1.Role) error

func CreateOrUpdateRoleBinding

func CreateOrUpdateRoleBinding(c base.K8sClientWithLogging, ctx context.Context, namespace string, roleBinding *rbacv1.RoleBinding) error

func DeleteClusterRole

func DeleteClusterRole(c base.K8sClientWithLogging, ctx context.Context, clusterRole string) error

func DeleteClusterRoleBinding

func DeleteClusterRoleBinding(c base.K8sClientWithLogging, ctx context.Context, clusterRoleBinding string) error

func DeleteRole

func DeleteRole(c base.K8sClientWithLogging, ctx context.Context, namespace string, role string) error

func DeleteRoleBinding

func DeleteRoleBinding(c base.K8sClientWithLogging, ctx context.Context, namespace string, roleBinding string) error

func RoleBindingNeedsUpdate

func RoleBindingNeedsUpdate(desiredRoleBinding, existingRoleBinding *rbacv1.RoleBinding) bool

RoleBindingNeedsUpdate RoleBinding needs an update with the list of subjects has changed

func RoleNeedsUpdate

func RoleNeedsUpdate(desiredRole, existingRole *rbacv1.Role) bool

RoleNeedsUpdate Role needs an update if the rules have changed

Types

This section is empty.

Jump to

Keyboard shortcuts

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