Documentation
¶
Index ¶
- Constants
- func NewArtifactRemainingCondition(generation int64) metav1.Condition
- func NewAutoDeploymentFailedCondition(generation int64) metav1.Condition
- func NewAutoDeploymentSuccessfulCondition(generation int64) metav1.Condition
- func NewBuildCompletedCondition(generation int64) metav1.Condition
- func NewBuildFailedCondition(generation int64) metav1.Condition
- func NewBuildFinalizingCondition(generation int64) metav1.Condition
- func NewDeployableArtifactCreatedCondition(generation int64) metav1.Condition
- func NewImageMissingBuildFailedCondition(generation int64) metav1.Condition
- type Reconciler
Constants ¶
View Source
const ( // ConditionCloneStepSucceeded represents whether the source code clone step is succeeded ConditionCloneStepSucceeded controller.ConditionType = "StepCloneSucceeded" // ConditionBuildStepSucceeded represents whether the build step is succeeded ConditionBuildStepSucceeded controller.ConditionType = "StepBuildSucceeded" // ConditionPushStepSucceeded represents whether the push step is succeeded ConditionPushStepSucceeded controller.ConditionType = "StepPushSucceeded" // ConditionDeployableArtifactCreated represents whether the deployable artifact is created after a successful build ConditionDeployableArtifactCreated controller.ConditionType = "DeployableArtifactCreated" // ConditionDeploymentApplied represents whether the deployment is created/updated when auto deploy is enabled ConditionDeploymentApplied controller.ConditionType = "DeploymentApplied" // ConditionCompleted represents whether the build is completed ConditionCompleted controller.ConditionType = "Completed" // ConditionBuildFinalizing represents the build resource is being deleted ConditionBuildFinalizing controller.ConditionType = "Finalizing" // ConditionDeployableArtifactReferencesRemaining indicates that the build deletion is blocked due to existing DeployableArtifact references ConditionDeployableArtifactReferencesRemaining controller.ConditionType = "DeployableArtifactReferencesRemaining" )
View Source
const ( ReasonStepQueued controller.ConditionReason = "Queued" ReasonStepInProgress controller.ConditionReason = "Progressing" ReasonStepSucceeded controller.ConditionReason = "Succeeded" ReasonStepFailed controller.ConditionReason = "Failed" // ReasonWorkflowCreatedSuccessfully represents the workflow has been created successfully ReasonWorkflowCreatedSuccessfully controller.ConditionReason = "WorkflowCreated" // ReasonArtifactCreatedSuccessfully represents the reason for DeployableArtifactCreated condition type ReasonArtifactCreatedSuccessfully controller.ConditionReason = "ArtifactCreationSuccessful" ReasonAutoDeploymentFailed controller.ConditionReason = "DeploymentFailed" ReasonAutoDeploymentApplied controller.ConditionReason = "DeploymentAppliedSuccessfully" ReasonBuildInProgress controller.ConditionReason = "BuildProgressing" ReasonBuildFailed controller.ConditionReason = "BuildFailed" ReasonBuildCompleted controller.ConditionReason = "BuildCompleted" ReasonBuildFinalizing controller.ConditionReason = "BuildCleanupOngoing" ReasonDeployableArtifactDeletionFailed controller.ConditionReason = "DeployableArtifactRemain" )
View Source
const (
// CleanUpFinalizer is used to ensure proper cleanup of data plane resources before a Build resource is deleted.
CleanUpFinalizer = "core.choreo.dev/build-cleanup"
)
Variables ¶
This section is empty.
Functions ¶
func NewBuildFailedCondition ¶
Types ¶
type Reconciler ¶
type Reconciler struct {
client.Client
DpClientMgr *dpKubernetes.KubeClientManager
Scheme *runtime.Scheme
GithubClient *github.Client
// contains filtered or unexported fields
}
Reconciler reconciles a Build object
func (*Reconciler) Reconcile ¶
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://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.19.1/pkg/reconcile
func (*Reconciler) ReconcileResource ¶
func (r *Reconciler) ReconcileResource( ctx context.Context, resourceHandler dataplane.ResourceHandler[integrations.BuildContext], buildCtx *integrations.BuildContext, logger logr.Logger) error
ReconcileResource handles the reconciliation logic for a single resource.
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.