cache

package
v1.9.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllNamespaces = ""

	ClusterClientSet   = "ClusterClientSet"
	WorkloadCounter    = "WorkloadCounter"
	ResourceCounter    = "ResourceCounter"
	ClusterPhase       = "ClusterPhase"
	TenantID           = "TenantID"
	ClusterDisplayName = "ClusterDisplayName"
	ComponentHealth    = "ComponentHealth"

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

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

	SchedulerPrefix         = "kube-scheduler-"
	ControllerManagerPrefix = "kube-controller-manager-"
	EtcdPrefix              = "etcd-"

	FirstLoad    = int32(1)
	NotFirstLoad = int32(0)
)

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

func IsScheduled added in v1.6.0

func IsScheduled(pod *corev1.Pod) bool

Types

type Cacher

type Cacher interface {
	Reload()
	GetClusterOverviewResult(clusters []*platformv1.Cluster) *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