argo

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkflowServiceAccountName = "workflow-sa"
	WorkflowRoleName           = "workflow-role"
	WorkflowRoleBindingName    = "workflow-role-binding"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

Engine implements BuildEngine interface for Argo Workflows

func NewEngine

func NewEngine() *Engine

NewEngine creates a new Argo build engine

func (*Engine) CreateBuild

CreateBuild creates an Argo Workflow for the build

func (*Engine) EnsurePrerequisites

func (e *Engine) EnsurePrerequisites(ctx context.Context, client client.Client, build *openchoreov1alpha1.Build) error

EnsurePrerequisites creates namespace, service account, role, and role binding

func (*Engine) ExtractBuildArtifacts

func (e *Engine) ExtractBuildArtifacts(ctx context.Context, client client.Client, build *openchoreov1alpha1.Build) (*engines.BuildArtifacts, error)

ExtractBuildArtifacts extracts image and workload CR from completed workflow

func (*Engine) GetBuildStatus

func (e *Engine) GetBuildStatus(ctx context.Context, client client.Client, build *openchoreov1alpha1.Build) (engines.BuildStatus, error)

GetBuildStatus retrieves the current status of the Argo Workflow

func (*Engine) GetName

func (e *Engine) GetName() string

GetName returns the name of the build engine

Jump to

Keyboard shortcuts

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