Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReferenceDeletion ¶
type ReferenceDeletion struct {
// contains filtered or unexported fields
}
ReferenceDeletion handles ServiceBinding validation
func (*ReferenceDeletion) InjectClient ¶
func (h *ReferenceDeletion) InjectClient(c client.Client) error
InjectClient injects the client
func (*ReferenceDeletion) InjectDecoder ¶
func (h *ReferenceDeletion) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder
func (*ReferenceDeletion) Validate ¶
func (h *ReferenceDeletion) Validate(ctx context.Context, req admission.Request, sb *sc.ServiceBinding, traced *webhookutil.TracedLogger) *webhookutil.WebhookError
Validate checks if instance reference for ServiceBinding is not marked for deletion fail ServiceBinding operation if the ServiceInstance is marked for deletion This feature was copied from Service Catalog admission plugin https://github.com/kubernetes-sigs/service-catalog/blob/v0.1.41/plugin/pkg/admission/servicebindings/lifecycle/admission.go If you want to track previous changes please check there.
type SpecValidationHandler ¶
type SpecValidationHandler struct { CreateValidators []Validator UpdateValidators []Validator // contains filtered or unexported fields }
SpecValidationHandler handles ServiceBinding 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 performs basic ServiceBroker validation for a Create operation.
func (*StaticCreate) Validate ¶
func (v *StaticCreate) Validate(ctx context.Context, req admission.Request, serviceBinding *sc.ServiceBinding, traced *webhookutil.TracedLogger) *webhookutil.WebhookError
Validate validate ServiceBinding instance
type StaticUpdate ¶
type StaticUpdate struct {
// contains filtered or unexported fields
}
StaticUpdate performs basic ServiceBroker validation for an 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, serviceBinding *sc.ServiceBinding, traced *webhookutil.TracedLogger) *webhookutil.WebhookError
Validate validate ServiceBinding instance
type StatusValidationHandler ¶
type StatusValidationHandler struct {
// contains filtered or unexported fields
}
StatusValidationHandler provides status resource validation
func (*StatusValidationHandler) Handle ¶
func (h *StatusValidationHandler) Handle(ctx context.Context, req admission.Request) admission.Response
Handle handles admission requests.
func (*StatusValidationHandler) InjectDecoder ¶
func (h *StatusValidationHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the handlers
type Validator ¶
type Validator interface {
Validate(context.Context, admission.Request, *sc.ServiceBinding, *webhookutil.TracedLogger) *webhookutil.WebhookError
}
Validator is used to implement new validation logic