deployment

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ConditionArtifactResolved represents whether the deployable artifact has been resolved
	ConditionArtifactResolved controller.ConditionType = "ArtifactResolved"
	// ConditionReady represents whether the deployment is ready
	ConditionReady controller.ConditionType = "Ready"
)
View Source
const (

	// ReasonArtifactResolvedSuccessfully the deployable artifact has been resolved successfully for deployment
	ReasonArtifactResolvedSuccessfully controller.ConditionReason = "ArtifactResolvedSuccessfully"
	// ReasonArtifactNotFound the referenced deployable artifact resource was not found in the deployment track
	ReasonArtifactNotFound controller.ConditionReason = "ArtifactNotFound"
	// ReasonArtifactBuildNotFound the build resource referenced by the deployable artifact was not found in the deployment track
	ReasonArtifactBuildNotFound controller.ConditionReason = "ArtifactBuildNotFound"

	// ReasonDeploymentReady the deployment is ready
	ReasonDeploymentReady       controller.ConditionReason = "DeploymentReady"
	ReasonDeploymentProgressing controller.ConditionReason = "DeploymentProgressing"
	ReasonDeploymentFinalizing  controller.ConditionReason = "DeploymentFinalizing"
)
View Source
const (
	// DataPlaneCleanupFinalizer is the finalizer that is used to clean up the data plane resources.
	DataPlaneCleanupFinalizer = "core.choreo.dev/data-plane-cleanup"
)

Variables

This section is empty.

Functions

func NewArtifactBuildNotFoundCondition

func NewArtifactBuildNotFoundCondition(artifactRef, buildRef string, generation int64) metav1.Condition

func NewArtifactNotFoundCondition

func NewArtifactNotFoundCondition(artifactRef string, generation int64) metav1.Condition

func NewArtifactResolvedCondition

func NewArtifactResolvedCondition(generation int64) metav1.Condition

func NewDeploymentFinalizingCondition

func NewDeploymentFinalizingCondition(generation int64) metav1.Condition

func NewDeploymentProgressingCondition

func NewDeploymentProgressingCondition(generation int64) metav1.Condition

func NewDeploymentReadyCondition

func NewDeploymentReadyCondition(generation int64) metav1.Condition

Types

type Reconciler

type Reconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

Reconciler reconciles a Deployment 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 Deployment 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) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis
integrations

Jump to

Keyboard shortcuts

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