crdwatcher

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 20 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTracingPolicyNamespacedReconciler added in v1.8.0

func RegisterTracingPolicyNamespacedReconciler(cm controllerManager, s sensorManager) error

RegisterTracingPolicyNamespacedReconciler installs the namespaced TracingPolicy Reconciler against the controller-runtime manager. Registration is gated on the TracingPolicyNamespaced CRD being present in the cluster — if it is not yet installed, the Reconciler will be registered as soon as it appears, independently of the cluster-scoped TracingPolicy CRD's availability.

func RegisterTracingPolicyReconciler added in v1.8.0

func RegisterTracingPolicyReconciler(cm controllerManager, s sensorManager) error

RegisterTracingPolicyReconciler installs the cluster-scoped TracingPolicy Reconciler against the controller-runtime manager. Registration is gated on the TracingPolicy CRD being present in the cluster — if it is not yet installed, the Reconciler will be registered as soon as it appears.

Types

type TracingPolicyNamespacedReconciler added in v1.8.0

type TracingPolicyNamespacedReconciler struct {
	Client  client.Client
	Sensors sensorManager
}

TracingPolicyNamespacedReconciler reconciles namespaced TracingPolicy resources. Structurally identical to TracingPolicyReconciler, with the namespace propagated through Add/Delete calls into sensors.Manager.

func (*TracingPolicyNamespacedReconciler) Reconcile added in v1.8.0

Reconcile drives Add/Delete on sensors.Manager from the live state of the TracingPolicyNamespaced CR.

func (*TracingPolicyNamespacedReconciler) SetupWithManager added in v1.8.0

func (r *TracingPolicyNamespacedReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers the Reconciler against the controller-runtime manager. GenerationChangedPredicate filters out status-only updates, finalizer changes, and annotation/label-only changes so they do not trigger BPF reloads.

type TracingPolicyReconciler added in v1.8.0

type TracingPolicyReconciler struct {
	Client  client.Client
	Sensors sensorManager
}

TracingPolicyReconciler reconciles cluster-scoped TracingPolicy resources.

On a successful Get, it performs Delete+Add against sensors.Manager (the same semantics as the previous informer-based handler on Update). On NotFound, it performs Delete. Status-only updates are filtered out at the source via GenerationChangedPredicate, so they do not reach Reconcile.

func (*TracingPolicyReconciler) Reconcile added in v1.8.0

func (r *TracingPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile drives Add/Delete on sensors.Manager from the live state of the TracingPolicy CR.

func (*TracingPolicyReconciler) SetupWithManager added in v1.8.0

func (r *TracingPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers the Reconciler against the controller-runtime manager. GenerationChangedPredicate filters out status-only updates, finalizer changes, and annotation/label-only changes so they do not trigger BPF reloads.

Jump to

Keyboard shortcuts

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