rbac

package
v0.104.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SA_ENV_VAR          = "SERVICE_ACCOUNT_NAME"
	NAMESPACE_ENV_VAR   = "NAMESPACE"
	NAMESPACE_FILE_PATH = "/var/run/secrets/kubernetes.io/serviceaccount/namespace"
)

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