controllers

package
v0.0.0-...-4f19ab4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppReconciler

type AppReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Logger *zap.SugaredLogger
}

AppReconciler reconciles App resources produced by kubeOP.

func (*AppReconciler) Reconcile

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

Reconcile processes a single reconciliation request for an App resource.

func (*AppReconciler) SetupWithManager

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

SetupWithManager wires the AppReconciler into a controller-runtime manager.

type TenantReconciler

type TenantReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Logger *zap.SugaredLogger
}

TenantReconciler manages tenant-scoped RBAC templates.

func (*TenantReconciler) Reconcile

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

Reconcile ensures tenant role bindings exist across namespaces.

func (*TenantReconciler) SetupWithManager

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

SetupWithManager wires the reconciler into the controller manager.

type UsageWriterReconciler

type UsageWriterReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Logger   *zap.SugaredLogger
	Source   metrics.Provider
	Clock    usageClock
	Interval time.Duration
}

UsageWriterReconciler aggregates usage metrics into BillingUsage snapshots.

func (*UsageWriterReconciler) Reconcile

Reconcile aggregates metrics and writes BillingUsage snapshots.

func (*UsageWriterReconciler) SetupWithManager

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

SetupWithManager wires the reconciler into the controller manager.

func (*UsageWriterReconciler) Start

Start enqueues reconcile requests on the configured interval.

Jump to

Keyboard shortcuts

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