Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebhook

func NewWebhook(name string, mgr manager.Manager, validator Validator, apiType runtime.Object) *admission.Webhook

    NewWebhook creates a validating admission webhook for the apiType.

    Types

    type Validator

    type Validator struct {
    	Config conf.Configuration
    	// contains filtered or unexported fields
    }

      Validator validates k8s resources.

      func (*Validator) Handle

      func (v *Validator) Handle(ctx context.Context, req types.Request) types.Response

        Handle for Validator to run validation checks.

        func (*Validator) InjectClient

        func (v *Validator) InjectClient(c client.Client) error

          InjectClient injects the client.

          func (*Validator) InjectDecoder

          func (v *Validator) InjectDecoder(d types.Decoder) error

            InjectDecoder injects the decoder.

            Source Files