workflowrun

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 14 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 workflow mutation handler to the webhook

func RegisterValidatingHandler

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

RegisterValidatingHandler will register application validate handler to the webhook

Types

type MutatingHandler

type MutatingHandler struct {
	Decoder *admission.Decoder
}

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) ValidateTimeout

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

ValidateTimeout validates the timeout of steps

func (*ValidatingHandler) ValidateWorkflow

func (h *ValidatingHandler) ValidateWorkflow(ctx context.Context, wr *v1alpha1.WorkflowRun) 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