workflowrun

package
Version: v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Client                k8s.Interface
	TimeoutProcessor      *workflowrun.TimeoutProcessor
	GCProcessor           *workflowrun.GCProcessor
	LimitedQueues         *workflowrun.LimitedQueues
	ParallelismController workflowrun.ParallelismController
	Informer              cache.SharedIndexInformer
}

Handler handles changes of WorkflowRun CR.

func NewHandler added in v1.1.0

func NewHandler(client k8s.Interface, gcEnable bool, maxWorkflowRuns int, parallelism *controller.ParallelismConfig) *Handler

NewHandler ...

func (*Handler) AddFinalizer added in v1.1.0

func (h *Handler) AddFinalizer(obj interface{}) (bool, error)

AddFinalizer adds a finalizer to the object and update the object to the Kubernetes.

func (*Handler) HandleFinalizer added in v1.1.0

func (h *Handler) HandleFinalizer(obj interface{}) error

HandleFinalizer does the finalizer key representing things.

func (*Handler) Reconcile added in v1.1.0

func (h *Handler) Reconcile(obj interface{}) (res controller.Result, err error)

Reconcile compares the actual state with the desired, and attempts to converge the two.

func (*Handler) SetStatus added in v1.0.0

func (h *Handler) SetStatus(ns, wfr string, status *v1alpha1.Status) error

SetStatus sets workflowRun status

Source Files

Jump to

Keyboard shortcuts

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