Documentation
¶
Overview ¶
Package kubernetestargets reconciles KubernetesTarget objects into a first-class, status-bearing registration of a remote spoke (Phase 2). It periodically probes each target's API and records reachability (Healthy/Down), the reported Kubernetes version, and the kubeconfig Secret resourceVersion the probe used — turning the passive reference into an observable spoke.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
ControllerOptions controller.Options
// PollInterval overrides how often a reachable target is re-probed (default 2m).
PollInterval time.Duration
}
Options configures the KubernetesTarget reachability reconciler.
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler probes a KubernetesTarget's reachability and records it in status.
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
Reconcile probes the target cluster's API and records reachability, version and the credential resourceVersion. It always requeues so status tracks the target over time (poll cadence for healthy targets, a shorter retry for down ones).