controller

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 26 Imported by: 0 modules, 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 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 GeneratedHealthCheckPredicate added in v1.17.0

type GeneratedHealthCheckPredicate struct{}

GeneratedHealthCheckPredicate lets through only the HealthChecks generated for a ClusterSummary (the ones carrying the ClusterSummary UID label). An update is let through when either the old or the new object carries the label, so that a HealthCheck which stops being a generated one is noticed.

func (GeneratedHealthCheckPredicate) Create added in v1.17.0

Create implements Predicate.

func (GeneratedHealthCheckPredicate) Delete added in v1.17.0

Delete implements Predicate.

func (GeneratedHealthCheckPredicate) Generic added in v1.17.0

Generic implements Predicate.

func (GeneratedHealthCheckPredicate) Update added in v1.17.0

Update implements Predicate.

type HealthCheckReconciler added in v1.17.0

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

HealthCheckReconciler reconciles the HealthChecks generated for a ClusterSummary when health monitoring is enabled. Only the metadata is watched: the labels and annotations tell which ClusterSummary a HealthCheck belongs to, nothing else is needed.

func (*HealthCheckReconciler) Reconcile added in v1.17.0

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

func (*HealthCheckReconciler) SetupWithManager added in v1.17.0

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

SetupWithManager sets up the controller with the Manager.

type HealthCheckReportReconciler added in v1.17.0

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

HealthCheckReportReconciler reconciles HealthCheckReports: the results of the health monitoring.

func (*HealthCheckReportReconciler) Reconcile added in v1.17.0

func (*HealthCheckReportReconciler) SetupWithManager added in v1.17.0

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