Documentation
¶
Index ¶
- func InitScheme() (*runtime.Scheme, error)
- type ClusterProfileReconciler
- type ClusterReconciler
- type ClusterStatusPredicate
- type ClusterSummaryPredicate
- type ClusterSummaryReconciler
- type GeneratedHealthCheckPredicate
- type HealthCheckReconciler
- type HealthCheckReportReconciler
- type ProfileReconciler
- type SveltosClusterPredicate
- type SveltosClusterReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitScheme ¶
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) SetupWithManager ¶ added in v0.42.0
func (r *ClusterProfileReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ClusterReconciler ¶
ClusterReconciler reconciles a Cluster object
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
func (p ClusterStatusPredicate) Update(e event.UpdateEvent) bool
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
func (p ClusterSummaryPredicate) Update(e event.UpdateEvent) bool
Update implements Predicate.
type ClusterSummaryReconciler ¶
type ClusterSummaryReconciler struct {
client.Client
Scheme *runtime.Scheme
ConcurrentReconciles int
}
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
func (p GeneratedHealthCheckPredicate) Create(e event.CreateEvent) bool
Create implements Predicate.
func (GeneratedHealthCheckPredicate) Delete ¶ added in v1.17.0
func (p GeneratedHealthCheckPredicate) Delete(e event.DeleteEvent) bool
Delete implements Predicate.
func (GeneratedHealthCheckPredicate) Generic ¶ added in v1.17.0
func (p GeneratedHealthCheckPredicate) Generic(e event.GenericEvent) bool
Generic implements Predicate.
func (GeneratedHealthCheckPredicate) Update ¶ added in v1.17.0
func (p GeneratedHealthCheckPredicate) Update(e event.UpdateEvent) bool
Update implements Predicate.
type HealthCheckReconciler ¶ added in v1.17.0
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) 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) 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
ProfileReconciler reconciles a Profile object
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
func (p SveltosClusterPredicate) Update(e event.UpdateEvent) bool
Update implements Predicate.
type SveltosClusterReconciler ¶
type SveltosClusterReconciler struct {
client.Client
Scheme *runtime.Scheme
ConcurrentReconciles int
}
SveltosClusterReconciler reconciles a SveltosCluster object
func (*SveltosClusterReconciler) SetupWithManager ¶
func (r *SveltosClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.