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 }
func NewCacher ¶
func NewCacher(platformClient platformversionedclient.PlatformV1Interface, businessClient businessversionedclient.BusinessV1Interface) Cacher
Click to show internal directories.
Click to hide internal directories.