rbac

package
v0.112.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRBACPermissions

func CheckRBACPermissions(ctx context.Context, reviewer *rbac.Reviewer) (admission.Warnings, error)

CheckRBACPermissions checks if the operator has the needed permissions to create RBAC resources automatically. If the RBAC is there, no errors nor warnings are returned.

Types

type Availability

type Availability int

Availability represents that the opeerator service account has permissions to create RBAC resources.

const (
	// NotAvailable RBAC permissions are not available.
	NotAvailable Availability = iota

	// Available NotAvailable RBAC permissions are available.
	Available
)

func (Availability) String

func (p Availability) String() string

Jump to

Keyboard shortcuts

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