clusterstatus

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is a controller that collects cluster status

func NewController

func NewController(
	apiserverURL string,
	kubeClient kubernetes.Interface,
	metricClient *metricsv.Clientset,
	kubeInformerFactory informers.SharedInformerFactory,
	predictorAddress string,
	predictorDirectAccess, useMetricsServer bool,
	collectingPeriod metav1.Duration,
	heartbeatFrequency metav1.Duration,
	labelAggregateThreshold float32,
	kubeQPS float32,
	kubeBurst int32,
) *Controller

func (*Controller) GetClusterStatus

func (c *Controller) GetClusterStatus() *clusterapi.ManagedClusterStatus

func (*Controller) GetManagedClusterLabels added in v0.11.0

func (c *Controller) GetManagedClusterLabels(labelPrefixes []string) labels.Set

func (*Controller) Run

func (c *Controller) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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