rbac

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControllerClusterRole

func NewControllerClusterRole(instance csiv1.CSIDriver, customClusterRoleName bool, haRequired bool, dummyClusterRole *rbacv1.ClusterRole) *rbacv1.ClusterRole

NewControllerClusterRole - Returns a ClusterRole for the controller plugin

func NewControllerClusterRoleBindings

func NewControllerClusterRoleBindings(instance csiv1.CSIDriver, customClusterRoleBinding bool, dummyClusterRole *rbacv1.ClusterRole) *rbacv1.ClusterRoleBinding

NewControllerClusterRoleBindings - Returns a new ClusterRoleBinding for controller

func NewDummyClusterRole

func NewDummyClusterRole(name string) *rbacv1.ClusterRole

NewDummyClusterRole - returns the cluster role

func NewLimitedClusterRole

func NewLimitedClusterRole(instance csiv1.CSIDriver, customControllerName bool, dummyClusterRole *rbacv1.ClusterRole) *rbacv1.ClusterRole

NewLimitedClusterRole - Returns a clusterRole for the Node plugin

func NewNodeClusterRole

func NewNodeClusterRole(instance csiv1.CSIDriver, customControllerName bool, dummyClusterRole *rbacv1.ClusterRole) *rbacv1.ClusterRole

NewNodeClusterRole - Returns a clusterRole for the Node plugin

func NewNodeClusterRoleBindings

func NewNodeClusterRoleBindings(instance csiv1.CSIDriver, customClusterRoleBinding bool, dummyClusterRole *rbacv1.ClusterRole) *rbacv1.ClusterRoleBinding

NewNodeClusterRoleBindings - Returns a new ClusterRoleBinding for the node plugin

func SyncClusterRole

func SyncClusterRole(ctx context.Context, clusterRole *rbacv1.ClusterRole, client client.Client, reqLogger logr.Logger) (*rbacv1.ClusterRole, error)

SyncClusterRole - Syncs a ClusterRole

func SyncClusterRoleBindings

func SyncClusterRoleBindings(ctx context.Context, rb *rbacv1.ClusterRoleBinding, client client.Client, reqLogger logr.Logger) error

SyncClusterRoleBindings - Syncs the ClusterRoleBindings

func SyncRole

func SyncRole(ctx context.Context, role *rbacv1.Role, client client.Client, reqLogger logr.Logger) error

SyncRole - Creates/Updates a Role

func SyncRoleBindings

func SyncRoleBindings(ctx context.Context, rb *rbacv1.RoleBinding, client client.Client, reqLogger logr.Logger) error

SyncRoleBindings - Syncs the RoleBindings

Types

This section is empty.

Jump to

Keyboard shortcuts

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