cache

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllNamespaces = ""

	ClusterClientSet = "ClusterClientSet"
	WorkloadCounter  = "WorkloadCounter"
	ResourceCounter  = "ResourceCounter"
	ClusterPhase     = "ClusterPhase"
	ComponentHealth  = "ComponentHealth"

	TAppResourceName = "tapps"
	TAppGroupName    = "apps.tkestack.io"

	Scheduler         Component = "scheduler"
	ControllerManager Component = "controller-manager"
	Etcd              Component = "etcd-0"

	EtcdPrefix = "etcd-"
)

Variables

View Source
var (
	TAppResource              = schema.GroupVersionResource{Group: TAppGroupName, Version: "v1", Resource: TAppResourceName}
	UpdateComponentStatusFunc = map[Component]updateComponent{
		Scheduler: func(componentStatus *corev1.ComponentStatus, health *util.ComponentHealth) {
			health.Scheduler = isHealthy(componentStatus)
		},
		ControllerManager: func(componentStatus *corev1.ComponentStatus, health *util.ComponentHealth) {
			health.ControllerManager = isHealthy(componentStatus)
		},
		Etcd: func(componentStatus *corev1.ComponentStatus, health *util.ComponentHealth) {
			health.Etcd = isHealthy(componentStatus)
		},
	}
)

Functions

This section is empty.

Types

type Cacher

type Cacher interface {
	Reload()
	GetClusterOverviewResult(clusterIDs []string) *monitor.ClusterOverviewResult
}

type Component

type Component string

Jump to

Keyboard shortcuts

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