Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ConditionTypeValid is the condition type for LynqForm validation status ConditionTypeValid = "Valid" // ConditionTypeApplied is the condition type for LynqForm applied status ConditionTypeApplied = "Applied" )
View Source
const ( // Annotation key for tracking Once creation policy AnnotationCreatedOnce = "lynq.sh/created-once" // Annotation value for created resources AnnotationValueTrue = "true" // Finalizer for node cleanup LynqNodeFinalizer = "lynqnode.operator.lynq.sh/finalizer" // Condition types ConditionTypeReady = "Ready" ConditionTypeProgressing = "Progressing" ConditionTypeConflicted = "Conflicted" ConditionTypeDegraded = "Degraded" // Resource formatting NoResourcesMessage = "no resources" // Ready reasons ReasonResourcesFailedAndConflicted = "ResourcesFailedAndConflicted" ReasonResourcesConflicted = "ResourcesConflicted" ReasonResourcesFailed = "ResourcesFailed" ReasonNotAllResourcesReady = "NotAllResourcesReady" // Degraded reasons ReasonResourceFailuresAndConflicts = "ResourceFailuresAndConflicts" ReasonResourceFailures = "ResourceFailures" ReasonResourceConflicts = "ResourceConflicts" ReasonResourcesNotReady = "ResourcesNotReady" // Reconcile results ResultSuccess = "success" ResultPartialFailure = "partial_failure" )
View Source
const (
// Finalizer for LynqHub
FinalizerLynqHub = "lynq.sh/hub-finalizer"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LynqFormReconciler ¶
type LynqFormReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder record.EventRecorder
}
LynqFormReconciler reconciles a LynqForm object
func (*LynqFormReconciler) SetupWithManager ¶
func (r *LynqFormReconciler) SetupWithManager(mgr ctrl.Manager, concurrency int) error
SetupWithManager sets up the controller with the Manager.
type LynqHubReconciler ¶
type LynqHubReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder record.EventRecorder
}
LynqHubReconciler reconciles a LynqHub object
func (*LynqHubReconciler) SetupWithManager ¶
func (r *LynqHubReconciler) SetupWithManager(mgr ctrl.Manager, concurrency int) error
SetupWithManager sets up the controller with the Manager.
type LynqNodeReconciler ¶
type LynqNodeReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder record.EventRecorder
StatusManager *status.Manager
}
LynqNodeReconciler reconciles a LynqNode object
func (*LynqNodeReconciler) SetupWithManager ¶
func (r *LynqNodeReconciler) SetupWithManager(mgr ctrl.Manager, concurrency int) error
SetupWithManager sets up the controller with the Manager.
type LynqNodeStatusUpdate ¶
type LynqNodeStatusUpdate struct {
// Resource counts
DesiredResources int32
ReadyResources int32
FailedResources int32
ConflictedResources int32
// Applied resource tracking
AppliedResources []string
// Computed conditions
Conditions []metav1.Condition
// Flags for internal use
IsReady bool
IsDegraded bool
}
LynqNodeStatusUpdate contains all calculated status fields for a LynqNode This structure consolidates status calculation logic for better testability and maintainability
type ReconcileType ¶
type ReconcileType int
ReconcileType defines the type of reconciliation to perform
const ( ReconcileTypeUnknown ReconcileType = iota ReconcileTypeInit // Finalizer needs to be added ReconcileTypeCleanup // Handle deletion ReconcileTypeSpec // Spec changed (full reconcile with apply) ReconcileTypeStatus // Status-only (fast path, no apply) )
Click to show internal directories.
Click to hide internal directories.