customverbauthorizer

package
v1.105.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// CustomVerbModifyProjectTolerationsWhitelist is a constant for the custom verb that allows modifying the
	// `.spec.tolerations.whitelist` field in `Project` resources.
	CustomVerbModifyProjectTolerationsWhitelist = "modify-spec-tolerations-whitelist"
	// CustomVerbProjectManageMembers is a constant for the custom verb that allows to manage human users or
	// groups subjects in the `.spec.members` field in `Project` resources.
	CustomVerbProjectManageMembers = "manage-members"

	// CustomVerbNamespacedCloudProfileModifyKubernetes is a constant for the custom verb that allows modifying the
	// `.spec.kubernetes` field in `NamespacedCloudProfile` resources.
	CustomVerbNamespacedCloudProfileModifyKubernetes = "modify-spec-kubernetes"
	// CustomVerbNamespacedCloudProfileModifyMachineImages is a constant for the custom verb that allows modifying the
	// `.spec.machineImages` field in `NamespacedCloudProfile` resources.
	CustomVerbNamespacedCloudProfileModifyMachineImages = "modify-spec-machineimages"
)

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(_ io.Reader) (admission.Interface, error)

NewFactory creates a new PluginFactory.

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type CustomVerbAuthorizer

type CustomVerbAuthorizer struct {
	*admission.Handler
	// contains filtered or unexported fields
}

CustomVerbAuthorizer contains an admission handler and listers.

func New

func New() (*CustomVerbAuthorizer, error)

New creates a new CustomVerbAuthorizer admission plugin.

func (*CustomVerbAuthorizer) SetAuthorizer

func (c *CustomVerbAuthorizer) SetAuthorizer(authorizer authorizer.Authorizer)

SetAuthorizer gets the authorizer.

func (*CustomVerbAuthorizer) Validate

Validate makes admissions decisions based on custom verbs.

func (*CustomVerbAuthorizer) ValidateInitialization

func (c *CustomVerbAuthorizer) ValidateInitialization() error

ValidateInitialization checks whether the plugin was correctly initialized.

Jump to

Keyboard shortcuts

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