Documentation
¶
Index ¶
- Constants
- func NewFactory(_ io.Reader) (admission.Interface, error)
- func Register(plugins *admission.Plugins)
- type CustomVerbAuthorizer
- func (c *CustomVerbAuthorizer) AssignReadyFunc(f admission.ReadyFunc)
- func (c *CustomVerbAuthorizer) SetAuthorizer(authorizer authorizer.Authorizer)
- func (c *CustomVerbAuthorizer) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
- func (c *CustomVerbAuthorizer) Validate(ctx context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
- func (c *CustomVerbAuthorizer) ValidateInitialization() error
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" // CustomVerbNamespacedCloudProfileModifyProviderConfig is a constant for the custom verb that allows modifying the // `.spec.providerConfig` field in `NamespacedCloudProfile` resources. CustomVerbNamespacedCloudProfileModifyProviderConfig = "modify-spec-providerconfig" // CustomVerbNamespacedCloudProfileRaiseLimits is a constant for the custom verb that allows raising the // `.spec.limits` limits in `NamespacedCloudProfile` resources above values defined in the parent `CloudProfile`. CustomVerbNamespacedCloudProfileRaiseLimits = "raise-spec-limits" // CustomVerbShootMarkSelfHosted is a constant for the custom verb that allows setting the // `.spec.provider.workers[].controlPlane` field in the `Shoot` spec which marks it as 'self-hosted shoot cluster'. CustomVerbShootMarkSelfHosted = "mark-self-hosted" )
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) AssignReadyFunc ¶ added in v1.117.0
func (c *CustomVerbAuthorizer) AssignReadyFunc(f admission.ReadyFunc)
AssignReadyFunc assigns the ready function to the admission handler.
func (*CustomVerbAuthorizer) SetAuthorizer ¶
func (c *CustomVerbAuthorizer) SetAuthorizer(authorizer authorizer.Authorizer)
SetAuthorizer gets the authorizer.
func (*CustomVerbAuthorizer) SetCoreInformerFactory ¶ added in v1.117.0
func (c *CustomVerbAuthorizer) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
SetCoreInformerFactory gets Lister from SharedInformerFactory.
func (*CustomVerbAuthorizer) Validate ¶
func (c *CustomVerbAuthorizer) Validate(ctx context.Context, a admission.Attributes, _ 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.