Documentation ¶
Index ¶
- func NewControllerClusterRole(instance csiv1.CSIDriver, customClusterRoleName bool, haRequired bool, ...) *rbacv1.ClusterRole
- func NewControllerClusterRoleBindings(instance csiv1.CSIDriver, customClusterRoleBinding bool, ...) *rbacv1.ClusterRoleBinding
- func NewDummyClusterRole(name string) *rbacv1.ClusterRole
- func NewLimitedClusterRole(instance csiv1.CSIDriver, customControllerName bool, ...) *rbacv1.ClusterRole
- func NewNodeClusterRole(instance csiv1.CSIDriver, customControllerName bool, ...) *rbacv1.ClusterRole
- func NewNodeClusterRoleBindings(instance csiv1.CSIDriver, customClusterRoleBinding bool, ...) *rbacv1.ClusterRoleBinding
- func SyncClusterRole(ctx context.Context, clusterRole *rbacv1.ClusterRole, client client.Client, ...) (*rbacv1.ClusterRole, error)
- func SyncClusterRoleBindings(ctx context.Context, rb *rbacv1.ClusterRoleBinding, client client.Client, ...) error
- func SyncRole(ctx context.Context, role *rbacv1.Role, client client.Client, ...) error
- func SyncRoleBindings(ctx context.Context, rb *rbacv1.RoleBinding, client client.Client, ...) error
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.