application

package
v1.4.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterValidatingHandler

func RegisterValidatingHandler(mgr manager.Manager, args controller.Args)

RegisterValidatingHandler will register application validate handler to the webhook

Types

type ValidatingHandler

type ValidatingHandler struct {
	Client client.Client
	// Decoder decodes objects
	Decoder *admission.Decoder
	// contains filtered or unexported fields
}

ValidatingHandler handles application

func (*ValidatingHandler) Handle

Handle validate Application Spec here

func (*ValidatingHandler) InjectClient

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

InjectClient injects the client into the ApplicationValidateHandler

func (*ValidatingHandler) InjectDecoder

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

InjectDecoder injects the decoder into the ApplicationValidateHandler

func (*ValidatingHandler) ValidateCreate added in v0.3.1

func (h *ValidatingHandler) ValidateCreate(ctx context.Context, app *v1beta1.Application) field.ErrorList

ValidateCreate validates the Application on creation

func (*ValidatingHandler) ValidateUpdate added in v0.3.1

func (h *ValidatingHandler) ValidateUpdate(ctx context.Context, newApp, oldApp *v1beta1.Application) field.ErrorList

ValidateUpdate validates the Application on update

Jump to

Keyboard shortcuts

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