application

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMutatingHandler

func RegisterMutatingHandler(mgr manager.Manager)

RegisterMutatingHandler will register component mutation handler to the webhook

func RegisterValidatingHandler

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

RegisterValidatingHandler will register application validate handler to the webhook

Types

type MutatingHandler

type MutatingHandler struct {
	Decoder *admission.Decoder
	// contains filtered or unexported fields
}

MutatingHandler adding user info to application annotations

func (*MutatingHandler) Handle

Handle mutate application

type ValidatingHandler

type ValidatingHandler struct {
	Client client.Client
	// Decoder decodes objects
	Decoder *admission.Decoder
}

ValidatingHandler handles application

func (*ValidatingHandler) Handle

Handle validate Application Spec here

func (*ValidatingHandler) ValidateAnnotations added in v1.10.0

func (h *ValidatingHandler) ValidateAnnotations(_ context.Context, app *v1beta1.Application) field.ErrorList

ValidateAnnotations validates whether the application has both autoupdate and publish version annotations

func (*ValidatingHandler) ValidateComponents

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

ValidateComponents validates the Application components

func (*ValidatingHandler) ValidateCreate

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

ValidateCreate validates the Application on creation

func (*ValidatingHandler) ValidateTimeout

func (h *ValidatingHandler) ValidateTimeout(name, timeout string) field.ErrorList

ValidateTimeout validates the timeout of steps

func (*ValidatingHandler) ValidateUpdate

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

ValidateUpdate validates the Application on update

func (*ValidatingHandler) ValidateWorkflow

func (h *ValidatingHandler) ValidateWorkflow(_ context.Context, app *v1beta1.Application) field.ErrorList

ValidateWorkflow validates the Application workflow

Jump to

Keyboard shortcuts

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