Documentation
¶
Index ¶
Constants ¶
View Source
const (
MutateWebhookCfgName = "controller.devfile.io"
)
View Source
const (
ValidateWebhookCfgName = "controller.devfile.io"
)
Variables ¶
This section is empty.
Functions ¶
func BuildMutateWebhookCfg ¶
func BuildMutateWebhookCfg(namespace string) *admregv1.MutatingWebhookConfiguration
BuildMutateWebhookCfg creates the mutating webhook configuration for the controller
Types ¶
type ResourcesMutator ¶
type ResourcesMutator struct {
*handler.WebhookHandler
}
ResourcesMutator checks that every: - workspace has creator label specified and it's not modified - workspace-related deployment, pod has unmodified workspace-id label and creator label
func NewResourcesMutator ¶
func NewResourcesMutator(controllerUID, controllerSAName string, mgr manager.Manager) *ResourcesMutator
type ResourcesValidator ¶
type ResourcesValidator struct {
*handler.WebhookHandler
}
ResourcesValidator validates execs process all exec requests and: if related pod DOES NOT have workspace_id label - just skip it if related pod DOES have workspace_id label - make sure that exec is requested by workspace creator
func NewResourcesValidator ¶
func NewResourcesValidator(controllerUID, controllerSAName string, mgr manager.Manager) *ResourcesValidator
Source Files
¶
Click to show internal directories.
Click to hide internal directories.