controller

package
v0.2.2-beta Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package controller implements Kubernetes controllers for krkn-operator custom resources. It reconciles KrknScenarioRun, KrknTargetRequest, and KrknOperatorTargetProviderConfig resources.

Index

Constants

View Source
const (
	// CleanupThresholdSeconds is the age threshold in seconds for cleaning up old completed resources
	// Used by KrknTargetRequest and KrknOperatorTargetProviderConfig controllers
	CleanupThresholdSeconds = 3600 // 1 hour
)

Variables

This section is empty.

Functions

func NewNamespaceFilter

func NewNamespaceFilter(namespace string) predicate.Predicate

NewNamespaceFilter creates a predicate that filters events by namespace

Types

type KrknOperatorTargetProviderConfigReconciler

type KrknOperatorTargetProviderConfigReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	OperatorName      string
	OperatorNamespace string
}

KrknOperatorTargetProviderConfigReconciler reconciles a KrknOperatorTargetProviderConfig object

func (*KrknOperatorTargetProviderConfigReconciler) Reconcile

Reconcile manages the lifecycle of KrknOperatorTargetProviderConfig resources. It ensures UUID labels are set, initializes status, and checks for completion when all active providers have contributed their configuration data.

func (*KrknOperatorTargetProviderConfigReconciler) SetupWithManager

SetupWithManager sets up the controller with the Manager

type KrknScenarioRunReconciler

type KrknScenarioRunReconciler struct {
	client.Client
	Scheme    *runtime.Scheme
	Clientset kubernetes.Interface
	Namespace string
}

KrknScenarioRunReconciler reconciles a KrknScenarioRun object

func (*KrknScenarioRunReconciler) Reconcile

Reconcile handles the reconciliation loop for KrknScenarioRun

func (*KrknScenarioRunReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager

type KrknTargetRequestReconciler

type KrknTargetRequestReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	OperatorName      string
	OperatorNamespace string
}

KrknTargetRequestReconciler reconciles a KrknTargetRequest object

func (*KrknTargetRequestReconciler) Reconcile

Reconcile processes KrknTargetRequest resources to populate target data from KrknOperatorTarget CRs

func (*KrknTargetRequestReconciler) SetupWithManager

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