{"modulePath":"github.com/projectsveltos/addon-controller","version":"v1.18.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controllers\n\n## Variables\n\n```go\nvar (\n\tCreateFuncTrue = func(e event.CreateEvent, logger logr.Logger) bool {\n\t\tlog := logger.WithValues(\"predicate\", \"createEvent\",\n\t\t\te.Object.GetObjectKind(), e.Object.GetName(),\n\t\t)\n\n\t\tlog.V(logs.LogVerbose).Info(fmt.Sprintf(\n\t\t\t\"%s did match expected conditions.  Will attempt to reconcile associated ClusterSummaries.\",\n\t\t\te.Object.GetObjectKind()))\n\t\treturn true\n\t}\n\n\tDeleteFuncTrue = func(e event.DeleteEvent, logger logr.Logger) bool {\n\t\tlog := logger.WithValues(\"predicate\", \"deleteEvent\",\n\t\t\te.Object.GetObjectKind(), e.Object.GetName(),\n\t\t)\n\t\tlog.V(logs.LogVerbose).Info(fmt.Sprintf(\n\t\t\t\"%s did match expected conditions.  Will attempt to reconcile associated ClusterSummaries.\",\n\t\t\te.Object.GetObjectKind()))\n\t\treturn true\n\t}\n\n\tGenericFuncFalse = func(e event.GenericEvent, logger logr.Logger) bool {\n\t\tlog := logger.WithValues(\"predicate\", \"genericEvent\",\n\t\t\te.Object.GetObjectKind(), e.Object.GetName(),\n\t\t)\n\t\tlog.V(logs.LogVerbose).Info(fmt.Sprintf(\n\t\t\t\"%s did not match expected conditions.  Will not attempt to reconcile associated ClusterSummaries.\",\n\t\t\te.Object.GetObjectKind()))\n\t\treturn false\n\t}\n)\n```\n\n## Functions\n\n```go\nfunc ConfigMapPredicates(logger logr.Logger) predicate.Funcs\n```\nConfigMapPredicates predicates for ConfigMaps. ClusterSummaryReconciler watches ConfigMap events and react to those by reconciling itself based on following predicates\n\n```go\nfunc InitScheme() (*runtime.Scheme, error)\n```\n\n```go\nfunc Initialization(ctx context.Context, config *rest.Config,\n\tscheme *runtime.Scheme, shardKey string, logger logr.Logger)\n```\n\n```go\nfunc NewInitCachingClient(c client.Client) client.Client\n```\nNewInitCachingClient wraps c so that Get calls made with a context carrying an initPassCache are memoized.\n\n```go\nfunc RegisterFeatures(d deployer.DeployerInterface, setupLog logr.Logger)\n```\n\n```go\nfunc RunHelmChartUpdateChecker(ctx context.Context, c client.Client, interval time.Duration, logger logr.Logger)\n```\nRunHelmChartUpdateChecker runs checkOutdatedHelmCharts once immediately, then on every tick of interval, until ctx is done. Only ever started for the default (unsharded) addon-controller deployment: see the shardKey == \"\" gate in cmd/main.go.\n\n```go\nfunc SecretPredicates(logger logr.Logger) predicate.Funcs\n```\nSecretPredicates predicates for Secrets. ClusterSummaryReconciler watches Secret events and react to those by reconciling itself based on following predicates\n\n```go\nfunc SetAgentClustersPerInstance(clustersPerInstance int)\n```\nSetAgentClustersPerInstance sets how many clusters one agent instance serves in agentless mode. A value lower than 2 keeps one instance per cluster.\n\n```go\nfunc SetAgentInMgmtCluster(isInMgmtCluster bool)\n```\n\n```go\nfunc SetCAPIOnboardAnnotation(key string)\n```\n\n```go\nfunc SetClusterPromotionReconciler(fn func(ctx context.Context, deps ClusterPromotionEnterpriseDeps,\n\tpromotionScope *scope.ClusterPromotionScope, isInFreeTopX bool, logger logr.Logger) reconcile.Result)\n```\nSetClusterPromotionReconciler overrides the ClusterPromotion stage-advancement implementation. Called by a Sveltos Enterprise build's composition root before starting the manager.\n\n```go\nfunc SetDriftDetectionRegistry(reg string)\n```\n\n```go\nfunc SetDriftdetectionConfigMap(name string)\n```\n\n```go\nfunc SetLuaCallStackSize(callStackSize int)\n```\n\n```go\nfunc SetLuaConfigMap(name string)\n```\n\n```go\nfunc SetLuaRegistrySize(registrySize int)\n```\n\n```go\nfunc SetManagementClusterAPIReader(reader client.Reader)\n```\nSetManagementClusterAPIReader sets the reader, not served from a cache, used to decide in which drift-detection-manager group a cluster is placed. Without it the client passed to the functions managing the groups is used.\n\n```go\nfunc SetManagementClusterAccess(c client.Client, config *rest.Config, dc *discovery.DiscoveryClient)\n```\n\n```go\nfunc SetPredicates(logger logr.Logger) predicate.Funcs\n```\nSetPredicates predicates for ClusterSet/Set. ClusterProfileReconciler watches ClusterSet/Set events and react to those by reconciling itself based on following predicates\n\n```go\nfunc SetSveltosAgentDisabled(disabled bool)\n```\nSetSveltosAgentDisabled sets whether sveltos-agent is not deployed in the clusters (classifier is started with --disable-sveltos-agent). Features relying on it (health monitoring, reloader) are disabled.\n\n```go\nfunc SetSveltosNamespace(namespace string)\n```\n\n## Types\n\n```go\ntype ClusterProfileReconciler struct {\n\tclient.Client\n\tScheme               *runtime.Scheme\n\tConcurrentReconciles int\n\tLogger               logr.Logger\n\n\t// use a Mutex to update Map as MaxConcurrentReconciles is higher than one\n\tMux sync.Mutex\n\n\t// key: ClusterSet: value ClusterProfiles currently referencing the ClusterSet\n\tClusterSetMap map[corev1.ObjectReference]*libsveltosset.Set\n\n\t// key: Sveltos/Cluster; value: set of all ClusterProfiles matching the Cluster\n\tClusterMap map[corev1.ObjectReference]*libsveltosset.Set\n\n\t// key: ClusterProfile; value ClusterProfile Selector\n\tClusterProfiles map[corev1.ObjectReference]libsveltosv1beta1.Selector\n\n\t// For each cluster contains current labels\n\t// This is needed in following scenario:\n\t// - ClusterProfile is created\n\t// - Cluster is created with labels matching ClusterProfile\n\t// - When first control plane machine in such cluster becomes available\n\t// we need Cluster labels to know which ClusterProfile to reconcile\n\tClusterLabels map[corev1.ObjectReference]map[string]string\n\t// contains filtered or unexported fields\n}\n```\nClusterProfileReconciler reconciles a ClusterProfile object\n\n```go\nfunc (r *ClusterProfileReconciler) GetController() controller.Controller\n```\n\n```go\nfunc (r *ClusterProfileReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)\n```\n\n```go\nfunc (r *ClusterProfileReconciler) SetupWithManager(mgr ctrl.Manager) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n```go\nfunc (r *ClusterProfileReconciler) WatchForCAPI(mgr ctrl.Manager, c controller.Controller) error\n```\n\n```go\ntype ClusterPromotionCopiesSweeper struct {\n\tclient.Client\n\tInterval    time.Duration\n\tGracePeriod time.Duration\n\tLogger      logr.Logger\n}\n```\nClusterPromotionCopiesSweeper periodically removes the ConfigMaps/Secrets ClusterPromotion created for a stage when they are not needed anymore: the ClusterProfile they were created for is gone, or does not reference them anymore. It is a safety net. Normally they are removed by the Kubernetes garbage collector when the ClusterPromotion is deleted, and by ClusterPromotion itself when it stops referencing them. It does not rely on the ClusterPromotion still existing.\n\n```go\nfunc NewClusterPromotionCopiesSweeper(c client.Client, logger logr.Logger) *ClusterPromotionCopiesSweeper\n```\nNewClusterPromotionCopiesSweeper returns a sweeper using the default interval and grace period\n\n```go\nfunc (s *ClusterPromotionCopiesSweeper) Start(ctx context.Context) error\n```\nStart implements manager.Runnable. It runs until ctx is done. Added with manager.Add, it only runs on the leader and after the caches are started.\n\n```go\ntype ClusterPromotionEnterpriseDeps struct {\n\tClient           client.Client\n\tConfig           *rest.Config\n\tScheme           *runtime.Scheme\n\tEventRecorder    events.EventRecorder\n\tSveltosNamespace string\n}\n```\nClusterPromotionEnterpriseDeps bundles what the Sveltos Enterprise ClusterPromotion implementation needs.\n\n```go\ntype ClusterPromotionReconciler struct {\n\tclient.Client\n\tConfig *rest.Config\n\tScheme *runtime.Scheme\n\n\tConcurrentReconciles int\n\n\tPolicyMux    sync.Mutex                                    // use a Mutex to update ReferenceMap as MaxConcurrentReconciles is higher than one\n\tReferenceMap map[corev1.ObjectReference]*libsveltosset.Set // key: Referenced object; value: set of all ClusterPromotions referencing the resource\n\t// contains filtered or unexported fields\n}\n```\nClusterPromotionReconciler reconciles a ClusterPromotion object\n\n```go\nfunc (r *ClusterPromotionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)\n```\n\n```go\nfunc (r *ClusterPromotionReconciler) SetupWithManager(mgr ctrl.Manager) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n```go\ntype ClusterSetReconciler struct {\n\tclient.Client\n\tScheme               *runtime.Scheme\n\tConcurrentReconciles int\n\tLogger               logr.Logger\n\n\t// use a Mutex to update Map as MaxConcurrentReconciles is higher than one\n\tMux sync.Mutex\n\t// key: Sveltos/Cluster; value: set of all ClusterSets matching the Cluster\n\tClusterMap map[corev1.ObjectReference]*libsveltosset.Set\n\t// key: ClusterSet; value: set of Sveltos/CAPI Clusters matched\n\tClusterSetMap map[corev1.ObjectReference]*libsveltosset.Set\n\n\t// key: ClusterSets; value ClusterSet Selector\n\tClusterSets map[corev1.ObjectReference]libsveltosv1beta1.Selector\n\n\t// For each cluster contains current labels\n\t// This is needed in following scenario:\n\t// - ClusterSet is created\n\t// - Cluster is created with labels matching ClusterSet\n\t// - When first control plane machine in such cluster becomes available\n\t// we need Cluster labels to know which ClusterSet to reconcile\n\tClusterLabels map[corev1.ObjectReference]map[string]string\n\t// contains filtered or unexported fields\n}\n```\nClusterSetReconciler reconciles a ClusterSet object\n\n```go\nfunc (r *ClusterSetReconciler) GetController() controller.Controller\n```\n\n```go\nfunc (r *ClusterSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)\n```\n\n```go\nfunc (r *ClusterSetReconciler) SetupWithManager(mgr ctrl.Manager) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n```go\nfunc (r *ClusterSetReconciler) WatchForCAPI(mgr ctrl.Manager, c controller.Controller) error\n```\n\n```go\ntype ClusterSummaryDeletedError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (r *ClusterSummaryDeletedError) Error() string\n```\n\n```go\ntype ClusterSummaryPredicate struct {\n\tLogger logr.Logger\n}\n```\nClusterSummaryStatusPredicate is a custom predicate that filters ClusterSummary s events\n\n```go\nfunc (p ClusterSummaryPredicate) Create(e event.CreateEvent) bool\n```\n\n```go\nfunc (p ClusterSummaryPredicate) Delete(e event.DeleteEvent) bool\n```\n\n```go\nfunc (p ClusterSummaryPredicate) Generic(e event.GenericEvent) bool\n```\n\n```go\nfunc (p ClusterSummaryPredicate) Update(e event.UpdateEvent) bool\n```\n\n```go\ntype ClusterSummaryReconciler struct {\n\t*rest.Config\n\tclient.Client\n\tScheme               *runtime.Scheme\n\tLogger               logr.Logger\n\tReportMode           ReportMode\n\tShardKey             string // when set, only clusters matching the ShardKey will be reconciled\n\tVersion              string\n\tDeployer             deployer.DeployerInterface\n\tConcurrentReconciles int\n\tPolicyMux            sync.Mutex                                    // use a Mutex to update Map as MaxConcurrentReconciles is higher than one\n\tReferenceMap         map[corev1.ObjectReference]*libsveltosset.Set // key: Referenced object; value: set of all ClusterSummaries referencing the resource\n\tClusterMap           map[corev1.ObjectReference]*libsveltosset.Set // key: Sveltos/Cluster; value: set of all ClusterSummaries for that Cluster\n\n\tConflictRetryTime    time.Duration\n\tHealthErrorRetryTime time.Duration\n\n\tDeletedInstances   map[types.NamespacedName]time.Time\n\tNextReconcileTimes map[types.NamespacedName]reconcileCooldown // in-memory cooldown, survives status-patch conflicts\n\t// contains filtered or unexported fields\n}\n```\nClusterSummaryReconciler reconciles a ClusterSummary object\n\n```go\nfunc (r *ClusterSummaryReconciler) GetController() controller.Controller\n```\n\n```go\nfunc (r *ClusterSummaryReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, reterr error)\n```\n\n```go\nfunc (r *ClusterSummaryReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n```go\nfunc (r *ClusterSummaryReconciler) WatchForCAPI(mgr ctrl.Manager, c controller.Controller) error\n```\n\n```go\nfunc (r *ClusterSummaryReconciler) WatchForFlux(mgr ctrl.Manager, c controller.Controller) error\n```\n\n```go\ntype DependenciesHashChangedPredicate struct {\n\tpredicate.Funcs\n}\n```\nDependenciesHashChangedPredicate implements a default update predicate function that triggers reconciliation only when the DependenciesHash in the Status changes.\n\n```go\nfunc (DependenciesHashChangedPredicate) Update(e event.UpdateEvent) bool\n```\nUpdate implements default UpdateEvent filter for validating DependenciesHash change.\n\n```go\ntype FluxBucketPredicate struct {\n\tLogger logr.Logger\n}\n```\n\n```go\nfunc (p FluxBucketPredicate) Create(obj event.TypedCreateEvent[*sourcev1.Bucket]) bool\n```\n\n```go\nfunc (p FluxBucketPredicate) Delete(obj event.TypedDeleteEvent[*sourcev1.Bucket]) bool\n```\n\n```go\nfunc (p FluxBucketPredicate) Generic(obj event.TypedGenericEvent[*sourcev1.Bucket]) bool\n```\n\n```go\nfunc (p FluxBucketPredicate) Update(obj event.TypedUpdateEvent[*sourcev1.Bucket]) bool\n```\n\n```go\ntype FluxGitRepositoryPredicate struct {\n\tLogger logr.Logger\n}\n```\n\n```go\nfunc (p FluxGitRepositoryPredicate) Create(obj event.TypedCreateEvent[*sourcev1.GitRepository]) bool\n```\n\n```go\nfunc (p FluxGitRepositoryPredicate) Delete(obj event.TypedDeleteEvent[*sourcev1.GitRepository]) bool\n```\n\n```go\nfunc (p FluxGitRepositoryPredicate) Generic(obj event.TypedGenericEvent[*sourcev1.GitRepository]) bool\n```\n\n```go\nfunc (p FluxGitRepositoryPredicate) Update(obj event.TypedUpdateEvent[*sourcev1.GitRepository]) bool\n```\n\n```go\ntype FluxOCIRepositoryPredicate struct {\n\tLogger logr.Logger\n}\n```\n\n```go\nfunc (p FluxOCIRepositoryPredicate) Create(obj event.TypedCreateEvent[*sourcev1.OCIRepository]) bool\n```\n\n```go\nfunc (p FluxOCIRepositoryPredicate) Delete(obj event.TypedDeleteEvent[*sourcev1.OCIRepository]) bool\n```\n\n```go\nfunc (p FluxOCIRepositoryPredicate) Generic(obj event.TypedGenericEvent[*sourcev1.OCIRepository]) bool\n```\n\n```go\nfunc (p FluxOCIRepositoryPredicate) Update(obj event.TypedUpdateEvent[*sourcev1.OCIRepository]) bool\n```\n\n```go\ntype LicenseManager struct {\n\t// contains filtered or unexported fields\n}\n```\nThe LicenseManager is responsible for tracking two specific resource types: -SveltosCluster instances operating in Pull Mode. - ClusterPromotion instances. It is important to note that the order in which these resources are processed may change if the Add-on Controller restarts. However, if the count of either SveltosClusters in Pull Mode or unlicensed ClusterPromotions exceeds the allowed limit (X), the configuration is considered invalid.\n\n```go\nfunc GetLicenseManager() *LicenseManager\n```\n\n```go\nfunc NewLicenseManager() *LicenseManager\n```\nNewLicenseManager creates and returns a new initialized LicenseManager.\n\n```go\nfunc (m *LicenseManager) AddCluster(cluster *libsveltosv1beta1.SveltosCluster)\n```\nAddCluster adds a SveltosCluster to the manager's collection. It ensures that the cluster is not added if it already exists (based on Name and Namespace). This method is thread-safe.\n\n```go\nfunc (m *LicenseManager) AddClusterPromotion(clusterpromotion *configv1beta1.ClusterPromotion)\n```\nAddClusterPromotion adds a ClusterPromotion to the manager's collection. It ensures that the clusterPromotion is not added if it already exists (based on Name and Namespace). This method is thread-safe.\n\n```go\nfunc (m *LicenseManager) IsClusterInTopX(namespace, name string, x int) bool\n```\nIsInTopX checks if a SveltosCluster, identified by its name and namespace, is among the first 'x' registered clusters in the manager's collection. This method is thread-safe.\n\n```go\nfunc (m *LicenseManager) IsClusterPromotionInTopX(namespace, name string, x int) bool\n```\nIsClusterPromotionInTopX checks if a ClusterPromotion, identified by its name and namespace, is among the first 'x' registered clusterPromotions in the manager's collection. This method is thread-safe.\n\n```go\nfunc (m *LicenseManager) RemoveCluster(namespace, name string)\n```\nRemoveCluster removes a SveltosCluster from the manager's collection identified by its name and namespace. This method is thread-safe.\n\n```go\nfunc (m *LicenseManager) RemoveClusterPromotion(namespace, name string)\n```\nRemoveClusterPromotion removes a ClusterPromotion from the manager's collection identified by its name and namespace. This method is thread-safe.\n\n```go\ntype ProfileReconciler struct {\n\tclient.Client\n\tScheme               *runtime.Scheme\n\tConcurrentReconciles int\n\tLogger               logr.Logger\n\n\t// use a Mutex to update Map as MaxConcurrentReconciles is higher than one\n\tMux sync.Mutex\n\n\t// key: Set; value: set of Profiles currently referencing the Set\n\tSetMap map[corev1.ObjectReference]*libsveltosset.Set\n\n\t// key: Sveltos/Cluster; value: set of all Profiles matching the Cluster\n\tClusterMap map[corev1.ObjectReference]*libsveltosset.Set\n\n\t// key: Profile; value Profile Selector\n\tProfiles map[corev1.ObjectReference]libsveltosv1beta1.Selector\n\n\t// For each cluster contains current labels\n\t// This is needed in following scenario:\n\t// - Profile is created\n\t// - Cluster is created with labels matching Profile\n\t// - When first control plane machine in such cluster becomes available\n\t// we need Cluster labels to know which Profile to reconcile\n\tClusterLabels map[corev1.ObjectReference]map[string]string\n\t// contains filtered or unexported fields\n}\n```\nProfileReconciler reconciles a Profile object\n\n```go\nfunc (r *ProfileReconciler) GetController() controller.Controller\n```\n\n```go\nfunc (r *ProfileReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)\n```\n\n```go\nfunc (r *ProfileReconciler) SetupWithManager(mgr ctrl.Manager) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n```go\nfunc (r *ProfileReconciler) WatchForCAPI(mgr ctrl.Manager, c controller.Controller) error\n```\n\n```go\ntype ReportMode int\n```\n\n```go\nconst (\n\t// Default mode. In this mode, addon-controller running\n\t// in the management cluster periodically collects/processes\n\t// ResourceSummaries from Sveltos/CAPI Clusters\n\tCollectFromManagementCluster ReportMode = iota\n\n\t// In this mode, drift detection manager sends ResourceSummaries\n\t// updates to management cluster.\n\tAgentSendUpdatesNoGateway\n)\n```\n\n```go\ntype SetReconciler struct {\n\tclient.Client\n\tScheme               *runtime.Scheme\n\tConcurrentReconciles int\n\tLogger               logr.Logger\n\n\t// use a Mutex to update Map as MaxConcurrentReconciles is higher than one\n\tMux sync.Mutex\n\t// key: Sveltos/Cluster; value: set of all Sets matching the Cluster\n\tClusterMap map[corev1.ObjectReference]*libsveltosset.Set\n\t// key: Set; value: set of Sveltos/CAPI Clusters matched\n\tSetMap map[corev1.ObjectReference]*libsveltosset.Set\n\n\t// key: Sets; value Set Selector\n\tSets map[corev1.ObjectReference]libsveltosv1beta1.Selector\n\n\t// For each cluster contains current labels\n\t// This is needed in following scenario:\n\t// - Set is created\n\t// - Cluster is created with labels matching Set\n\t// - When first control plane machine in such cluster becomes available\n\t// we need Cluster labels to know which Set to reconcile\n\tClusterLabels map[corev1.ObjectReference]map[string]string\n\t// contains filtered or unexported fields\n}\n```\nSetReconciler reconciles a Set object\n\n```go\nfunc (r *SetReconciler) GetController() controller.Controller\n```\n\n```go\nfunc (r *SetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)\n```\n\n```go\nfunc (r *SetReconciler) SetupWithManager(mgr ctrl.Manager) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n```go\nfunc (r *SetReconciler) WatchForCAPI(mgr ctrl.Manager, c controller.Controller) error\n```\n\n```go\ntype SortedHelmCharts []configv1beta1.HelmChart\n```\n\n```go\nfunc (a SortedHelmCharts) Len() int\n```\n\n```go\nfunc (a SortedHelmCharts) Less(i, j int) bool\n```\n\n```go\nfunc (a SortedHelmCharts) Swap(i, j int)\n```\n\n```go\ntype SortedKustomizationRefs []configv1beta1.KustomizationRef\n```\n\n```go\nfunc (a SortedKustomizationRefs) Len() int\n```\n\n```go\nfunc (a SortedKustomizationRefs) Less(i, j int) bool\n```\n\n```go\nfunc (a SortedKustomizationRefs) Swap(i, j int)\n```\n\n```go\ntype SortedPatches []libsveltosv1beta1.Patch\n```\n\n```go\nfunc (a SortedPatches) Len() int\n```\n\n```go\nfunc (a SortedPatches) Less(i, j int) bool\n```\n\n```go\nfunc (a SortedPatches) Swap(i, j int)\n```\n\n```go\ntype SortedPolicyRefs []configv1beta1.PolicyRef\n```\n\n```go\nfunc (a SortedPolicyRefs) Len() int\n```\n\n```go\nfunc (a SortedPolicyRefs) Less(i, j int) bool\n```\n\n```go\nfunc (a SortedPolicyRefs) Swap(i, j int)\n```\n\n```go\ntype SortedTemplateResourceRefs []configv1beta1.TemplateResourceRef\n```\n\n```go\nfunc (a SortedTemplateResourceRefs) Len() int\n```\n\n```go\nfunc (a SortedTemplateResourceRefs) Less(i, j int) bool\n```\n\n```go\nfunc (a SortedTemplateResourceRefs) Swap(i, j int)\n```\n\n```go\ntype SortedValidateHealths []libsveltosv1beta1.ValidateHealth\n```\n\n```go\nfunc (a SortedValidateHealths) Len() int\n```\n\n```go\nfunc (a SortedValidateHealths) Less(i, j int) bool\n```\n\n```go\nfunc (a SortedValidateHealths) Swap(i, j int)\n```\n\n```go\ntype SortedValueFroms []configv1beta1.ValueFrom\n```\n\n```go\nfunc (a SortedValueFroms) Len() int\n```\n\n```go\nfunc (a SortedValueFroms) Less(i, j int) bool\n```\n\n```go\nfunc (a SortedValueFroms) Swap(i, j int)\n```\n\n```go\ntype SveltosClusterReconciler struct {\n\tclient.Client\n\tScheme *runtime.Scheme\n}\n```\nSveltosClusterReconciler reconciles a SveltosCluster object\n\n```go\nfunc (r *SveltosClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)\n```\n\n```go\nfunc (r *SveltosClusterReconciler) SetupWithManager(mgr ctrl.Manager) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n```go\ntype WaitingForPausedClustersError struct {\n\tClusters []corev1.ObjectReference\n}\n```\nWaitingForPausedClustersError is returned when a ClusterProfile/Profile being deleted cannot make progress because all the ClusterSummaries still present are for paused clusters. Those ClusterSummaries are removed only once the clusters are unpaused.\n\n```go\nfunc (e *WaitingForPausedClustersError) Error() string\n```\n\n","path":"github.com/projectsveltos/addon-controller/controllers","name":"controllers","synopsis":"","isRedistributable":true}
