Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TargetKindValidation

func TargetKindValidation(targetKind *v1alpha1.TargetKind) field.ErrorList

    TargetKindValidation validates a TargetKind and returns a list of errors.

    Types

    type StaticCreate

    type StaticCreate struct{}

      StaticCreate runs basic TargetKind validation for Create operation.

      func (*StaticCreate) Validate

      func (v *StaticCreate) Validate(targetKind *v1alpha1.TargetKind) *webhook.Error

        Validate validate TargetKind instance

        type ValidationHandler

        type ValidationHandler struct {
        	CreateValidators []Validator
        	UpdateValidators []Validator
        	// contains filtered or unexported fields
        }

        func NewValidationHandler

        func NewValidationHandler(log log.FieldLogger) *ValidationHandler

        func (*ValidationHandler) Handle

        func (*ValidationHandler) InjectClient

        func (h *ValidationHandler) InjectClient(c client.Client) error

          InjectClient injects the client into the handlers

          func (*ValidationHandler) InjectDecoder

          func (h *ValidationHandler) InjectDecoder(d *admission.Decoder) error

          type Validator

          type Validator interface {
          	Validate(*v1alpha1.TargetKind) *webhook.Error
          }