controller

package
v0.0.0-...-a44ee5e Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StatusUpdateRetryInterval is the retry interval when status update conflicts occur
	StatusUpdateRetryInterval = 3 * time.Second

	// PendingPhaseCheckInterval is how often to check Pod status during Pending phase
	PendingPhaseCheckInterval = 3 * time.Second

	// TerminationCheckInterval is the requeue interval during termination
	TerminationCheckInterval = 1 * time.Second

	// ImmediateRequeueInterval is for immediate requeue for time-based transitions
	ImmediateRequeueInterval = 1 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceReconciler

type InstanceReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

InstanceReconciler reconciles a Instance object

func (*InstanceReconciler) Reconcile

func (r *InstanceReconciler) 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.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.22.1/pkg/reconcile

func (*InstanceReconciler) SetupWithManager

func (r *InstanceReconciler) 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