controller

package
v1.14.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitScheme

func InitScheme() (*runtime.Scheme, error)

Types

type ClusterProfileReconciler added in v0.42.0

type ClusterProfileReconciler struct {
	client.Client
	Scheme               *runtime.Scheme
	ConcurrentReconciles int
}

ClusterProfileReconciler reconciles a ClusterProfile object

func (*ClusterProfileReconciler) Reconcile added in v0.42.0

func (*ClusterProfileReconciler) SetupWithManager added in v0.42.0

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

SetupWithManager sets up the controller with the Manager.

type ClusterReconciler

type ClusterReconciler struct {
	client.Client
	Scheme               *runtime.Scheme
	ConcurrentReconciles int
}

ClusterReconciler reconciles a Cluster object

func (*ClusterReconciler) Reconcile

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

func (*ClusterReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ClusterStatusPredicate added in v1.2.0

type ClusterStatusPredicate struct {
	predicate.GenerationChangedPredicate
}

ClusterStatusPredicate is a custom predicate that triggers reconciliation on generation changes or when the Cluster's status.conditions or status.initialization fields change.

func (ClusterStatusPredicate) Update added in v1.2.0

Update implements Predicate.

type ClusterSummaryPredicate added in v1.13.0

type ClusterSummaryPredicate struct {
	predicate.GenerationChangedPredicate
}

ClusterSummaryPredicate is a custom predicate that triggers reconciliation on generation changes (Spec, i.e. which profile/cluster this ClusterSummary is for) or when any of the ClusterSummary.Status fields this package's cache actually reads change: FeatureSummaries, Dependencies, or HelmReleaseSummaries. This deliberately ignores the rest of ClusterSummary.Status (DeployedGVKs, NextReconcileTime, top-level FailureMessage, ReconciliationSuspended, SuspensionReason) since nothing in this package consumes them.

HelmReleaseSummaries is compared as a whole slice, which does not filter out a pass where addon-controller's periodic outdated-Helm-chart checker only advances LastCheckedTime without changing LatestVersion/LatestPatchVersion -- accepted as a simplification, since that field is exactly the one this predicate exists to notice changing.

func (ClusterSummaryPredicate) Update added in v1.13.0

Update implements Predicate.

type ClusterSummaryReconciler

type ClusterSummaryReconciler struct {
	client.Client
	Scheme               *runtime.Scheme
	ConcurrentReconciles int
}

func (*ClusterSummaryReconciler) Reconcile

func (*ClusterSummaryReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ProfileReconciler added in v0.42.0

type ProfileReconciler struct {
	client.Client
	Scheme               *runtime.Scheme
	ConcurrentReconciles int
}

ProfileReconciler reconciles a Profile object

func (*ProfileReconciler) Reconcile added in v0.42.0

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

func (*ProfileReconciler) SetupWithManager added in v0.42.0

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

SetupWithManager sets up the controller with the Manager.

type SveltosClusterPredicate added in v1.2.0

type SveltosClusterPredicate struct {
	predicate.GenerationChangedPredicate
}

SveltosClusterPredicate is a custom predicate that triggers reconciliation on generation changes or when the SveltosCluster's Status.Ready field changes.

func (SveltosClusterPredicate) Update added in v1.2.0

Update implements Predicate.

type SveltosClusterReconciler

type SveltosClusterReconciler struct {
	client.Client
	Scheme               *runtime.Scheme
	ConcurrentReconciles int
}

SveltosClusterReconciler reconciles a SveltosCluster object

func (*SveltosClusterReconciler) Reconcile

func (*SveltosClusterReconciler) SetupWithManager

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