knobs

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSync

func NewSync(r client.Reader, logger logr.Logger) extension.CustomMutator

func NewValidator

func NewValidator() extension.CustomValidator

func SetupWebhooks

func SetupWebhooks(ctx context.Context, mgr ctrl.Manager, apiPath string) error

Types

type Sync

type Sync struct {
	client.Reader
	logr.Logger
}

func (*Sync) MutateOnCreate

func (s *Sync) MutateOnCreate(ctx context.Context, obj runtime.Object) error

func (*Sync) MutateOnUpdate

func (s *Sync) MutateOnUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

type Validator

type Validator struct {
}

func (*Validator) ValidateCreate

func (v *Validator) ValidateCreate(ctx context.Context, obj runtime.Object) error

func (*Validator) ValidateDelete

func (v *Validator) ValidateDelete(ctx context.Context, obj runtime.Object) error

func (*Validator) ValidateUpdate

func (v *Validator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL