workflows

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WfInstanceIdLabelKey           = "workflows.argoproj.io/controller-instanceid"
	WfInstanceId                   = "addon-manager-workflow-controller"
	WfDefaultActiveDeadlineSeconds = 300
)

Variables

This section is empty.

Functions

func ConvertUnstructuredWorkflowToString

func ConvertUnstructuredWorkflowToString(u unstructured.Unstructured) string

ConvertUnstructuredWorkflowToString converts the unstructured content into a string

Types

type AddonLifecycle

type AddonLifecycle interface {
	Install(context.Context, *WorkflowProxy) error
	Delete(context.Context, string) error
}

AddonLifecycle represents the following workflows

func NewWorkflowLifecycle

func NewWorkflowLifecycle(wfclientset wfclientset.Interface, wfinformer cache.SharedIndexInformer, dynClient dynamic.Interface, addon *addonmgrv1alpha1.Addon, scheme *runtime.Scheme, recorder record.EventRecorder,
	log logr.Logger) AddonLifecycle

NewWorkflowLifecycle returns a AddonLifecycle object

type WorkflowBuilder

type WorkflowBuilder interface {
	Scripts(map[string]string) WorkflowBuilder
	Resources([]string) WorkflowBuilder
	Delete() WorkflowBuilder
	Build() unstructured.Unstructured
}

WorkflowBuilder interface for building an unstructured workflow

func New

func New() WorkflowBuilder

New creates a reference to the workflowBuilder type

type WorkflowProxy added in v0.7.1

type WorkflowProxy struct {
	// contains filtered or unexported fields
}

func NewWorkflowProxy added in v0.7.1

func NewWorkflowProxy(name string, wt *addonmgrv1alpha1.WorkflowType, lifecycle addonmgrv1alpha1.LifecycleStep) *WorkflowProxy

Jump to

Keyboard shortcuts

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