build

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConditionBuildInitiated  controller.ConditionType = "BuildInitiated"
	ConditionBuildTriggered  controller.ConditionType = "BuildTriggered"
	ConditionBuildCompleted  controller.ConditionType = "BuildCompleted"
	ConditionWorkloadUpdated controller.ConditionType = "WorkloadUpdated"
)

Build condition types

View Source
const (
	ReasonBuildInitiated          controller.ConditionReason = "BuildInitiated"
	ReasonBuildTriggered          controller.ConditionReason = "BuildTriggered"
	ReasonBuildCompleted          controller.ConditionReason = "BuildCompleted"
	ReasonBuildFailed             controller.ConditionReason = "BuildFailed"
	ReasonBuildInProgress         controller.ConditionReason = "BuildInProgress"
	ReasonWorkflowCreated         controller.ConditionReason = "WorkflowCreated"
	ReasonWorkflowCreationFailed  controller.ConditionReason = "WorkflowCreationFailed"
	ReasonNamespaceCreationFailed controller.ConditionReason = "NamespaceCreationFailed"
	ReasonRBACCreationFailed      controller.ConditionReason = "RBACCreationFailed"
	ReasonWorkloadUpdated         controller.ConditionReason = "WorkloadUpdated"
	ReasonWorkloadUpdateFailed    controller.ConditionReason = "WorkloadUpdateFailed"
)

Build condition reasons

View Source
const (
	MaxWorkflowNameLength      = 63
	MaxImageNameLength         = 63
	MaxImageTagLength          = 128
	DefaultDTName              = "default"
	WorkflowServiceAccountName = "workflow-sa"
	WorkflowRoleName           = "workflow-role"
	WorkflowRoleBindingName    = "workflow-role-binding"
)
View Source
const (
	// ControllerName is the name of the controller managing Build resources
	ControllerName = "build-controller"
)

Variables

This section is empty.

Functions

func NewBuildCompletedCondition

func NewBuildCompletedCondition(generation int64) metav1.Condition

NewBuildCompletedCondition creates a new BuildCompleted condition

func NewBuildFailedCondition

func NewBuildFailedCondition(generation int64) metav1.Condition

NewBuildFailedCondition creates a new BuildFailed condition

func NewBuildInProgressCondition added in v0.3.0

func NewBuildInProgressCondition(generation int64) metav1.Condition

NewBuildInProgressCondition creates a new BuildInProgress condition

func NewBuildInitiatedCondition added in v0.3.0

func NewBuildInitiatedCondition(generation int64) metav1.Condition

NewBuildInitiatedCondition creates a new BuildInitiated condition

func NewBuildTriggeredCondition added in v0.3.0

func NewBuildTriggeredCondition(generation int64) metav1.Condition

NewBuildTriggeredCondition creates a new BuildTriggered condition

func NewNamespaceCreationFailedCondition added in v0.3.0

func NewNamespaceCreationFailedCondition(generation int64, message string) metav1.Condition

NewNamespaceCreationFailedCondition creates a new NamespaceCreationFailed condition

func NewRBACCreationFailedCondition added in v0.3.0

func NewRBACCreationFailedCondition(generation int64, message string) metav1.Condition

NewRBACCreationFailedCondition creates a new RBACCreationFailed condition

func NewWorkflowCreatedCondition added in v0.3.0

func NewWorkflowCreatedCondition(generation int64) metav1.Condition

NewWorkflowCreatedCondition creates a new WorkflowCreated condition

func NewWorkflowCreationFailedCondition added in v0.3.0

func NewWorkflowCreationFailedCondition(generation int64, message string) metav1.Condition

NewWorkflowCreationFailedCondition creates a new WorkflowCreationFailed condition

func NewWorkloadUpdateFailedCondition added in v0.3.0

func NewWorkloadUpdateFailedCondition(generation int64) metav1.Condition

NewWorkloadUpdateFailedCondition creates a new WorkloadUpdateFailed condition

func NewWorkloadUpdatedCondition added in v0.3.0

func NewWorkloadUpdatedCondition(generation int64) metav1.Condition

NewWorkloadUpdatedCondition creates a new WorkloadUpdated condition

Types

type Reconciler

type Reconciler struct {
	client.Client
	// IsGitOpsMode indicates whether the controller is running in GitOps mode
	IsGitOpsMode bool
	Scheme       *runtime.Scheme
	// contains filtered or unexported fields
}

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.

func (*Reconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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