Documentation
¶
Index ¶
- Constants
- func NewArtifactBuildNotFoundCondition(artifactRef, buildRef string, generation int64) metav1.Condition
- func NewArtifactNotFoundCondition(artifactRef string, generation int64) metav1.Condition
- func NewArtifactResolvedCondition(generation int64) metav1.Condition
- func NewDeploymentFinalizingCondition(generation int64) metav1.Condition
- func NewDeploymentProgressingCondition(generation int64) metav1.Condition
- func NewDeploymentReadyCondition(generation int64) metav1.Condition
- type Reconciler
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 ¶
Types ¶
type Reconciler ¶
type Reconciler struct { client.Client Scheme *runtime.Scheme // contains filtered or unexported fields }
Reconciler reconciles a Deployment 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 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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.