Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PluginName is the name of this admission plugin. PluginName = "CustomVerbAuthorizer" // CustomVerbModifyProjectTolerationsWhitelist is a constant for the custom verb that allows modifying the // `.spec.tolerations.whitelist` field in `Project` resources. CustomVerbModifyProjectTolerationsWhitelist = "modify-spec-tolerations-whitelist" // CustomVerbProjectUserAccessManagement 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" )
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a new PluginFactory.
Types ¶
type CustomVerbAuthorizer ¶
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 ¶
func (c *CustomVerbAuthorizer) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Validate makes admissions decisions based on custom verbs.
func (*CustomVerbAuthorizer) ValidateInitialization ¶
func (c *CustomVerbAuthorizer) ValidateInitialization() error
ValidateInitialization checks whether the plugin was correctly initialized.
Click to show internal directories.
Click to hide internal directories.