kubernetestargets

package
v0.0.0-...-97785b7 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

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

func Setup

func Setup(mgr ctrl.Manager, o Options) error

Setup wires the reconciler into the manager.

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).

Jump to

Keyboard shortcuts

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