build

package
v0.0.0-...-6290839 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Initialized               controller.ConditionType = "Initialized"
	CloneSucceeded            controller.ConditionType = "CloneSucceeded"
	BuildSucceeded            controller.ConditionType = "BuildSucceeded"
	PushSucceeded             controller.ConditionType = "PushSucceeded"
	Completed                 controller.ConditionType = "Completed"
	DeployableArtifactCreated controller.ConditionType = "DeployableArtifactCreated"
	DeploymentApplied         controller.ConditionType = "DeploymentApplied"
)

Variables

This section is empty.

Functions

func GetStepByTemplateName

func GetStepByTemplateName(nodes argo.Nodes, step WorkflowStep) (*argo.NodeStatus, bool)

Types

type Reconciler

type Reconciler struct {
	client.Client
	Scheme       *runtime.Scheme
	GithubClient *github.Client
}

Reconciler reconciles a Build object

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Build object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkgo.dev/sigs.k8s.io/[email protected]/pkg/reconcile

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type StepPhase

type StepPhase string
const (
	Running   StepPhase = "Running"
	Succeeded StepPhase = "Succeeded"
	Failed    StepPhase = "Failed"
)

Workflow and node statuses

type WorkflowStep

type WorkflowStep string
const (
	CloneStep WorkflowStep = "clone-step"
	BuildStep WorkflowStep = "build-step"
	PushStep  WorkflowStep = "push-step"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳