Documentation ¶
Index ¶
- type DenyPlanChangeIfNotUpdatable
- func (h *DenyPlanChangeIfNotUpdatable) InjectClient(c client.Client) error
- func (h *DenyPlanChangeIfNotUpdatable) InjectDecoder(d *admission.Decoder) error
- func (h *DenyPlanChangeIfNotUpdatable) Validate(ctx context.Context, req admission.Request, si *sc.ServiceInstance, ...) *webhookutil.WebhookError
- type SpecValidationHandler
- type StaticCreate
- type StaticUpdate
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DenyPlanChangeIfNotUpdatable ¶
type DenyPlanChangeIfNotUpdatable struct {
// contains filtered or unexported fields
}
DenyPlanChangeIfNotUpdatable handles ServiceInstance validation
func (*DenyPlanChangeIfNotUpdatable) InjectClient ¶
func (h *DenyPlanChangeIfNotUpdatable) InjectClient(c client.Client) error
InjectClient injects the client
func (*DenyPlanChangeIfNotUpdatable) InjectDecoder ¶
func (h *DenyPlanChangeIfNotUpdatable) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder
func (*DenyPlanChangeIfNotUpdatable) Validate ¶
func (h *DenyPlanChangeIfNotUpdatable) Validate(ctx context.Context, req admission.Request, si *sc.ServiceInstance, traced *webhookutil.TracedLogger) *webhookutil.WebhookError
Validate checks if Plan can be changed
type SpecValidationHandler ¶
type SpecValidationHandler struct { CreateValidators []Validator UpdateValidators []Validator // contains filtered or unexported fields }
SpecValidationHandler handles ServiceInstance validation
func NewSpecValidationHandler ¶
func NewSpecValidationHandler() *SpecValidationHandler
NewSpecValidationHandler creates new SpecValidationHandler and initializes validators list
func (*SpecValidationHandler) Handle ¶
func (h *SpecValidationHandler) Handle(ctx context.Context, req admission.Request) admission.Response
Handle handles admission requests.
func (*SpecValidationHandler) InjectClient ¶
func (h *SpecValidationHandler) InjectClient(c client.Client) error
InjectClient injects the client into the handlers
func (*SpecValidationHandler) InjectDecoder ¶
func (h *SpecValidationHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the handlers
type StaticCreate ¶
type StaticCreate struct { }
StaticCreate runs basic ServiceInstance validation for Create operation.
func (*StaticCreate) Validate ¶
func (v *StaticCreate) Validate(ctx context.Context, req admission.Request, serviceInstance *sc.ServiceInstance, traced *webhookutil.TracedLogger) *webhookutil.WebhookError
Validate validate ServiceBinding instance
type StaticUpdate ¶
type StaticUpdate struct {
// contains filtered or unexported fields
}
StaticUpdate runs basic ServiceInstance validation for Update operation.
func (*StaticUpdate) InjectDecoder ¶
func (v *StaticUpdate) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder
func (*StaticUpdate) Validate ¶
func (v *StaticUpdate) Validate(ctx context.Context, req admission.Request, serviceInstance *sc.ServiceInstance, traced *webhookutil.TracedLogger) *webhookutil.WebhookError
Validate validate ServiceInstance instance
type Validator ¶
type Validator interface {
Validate(context.Context, admission.Request, *sc.ServiceInstance, *webhookutil.TracedLogger) *webhookutil.WebhookError
}
Validator is used to implement new validation logic