v1alpha2

package
v0.0.0-...-be065d1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentStatus

type ComponentStatus struct {
	Name            string      `json:"name" description:"component name"`
	Namespace       string      `json:"namespace" description:"the name of the namespace"`
	SelfLink        string      `json:"selfLink" description:"self link"`
	Label           interface{} `json:"label" description:"labels"`
	StartedAt       time.Time   `json:"startedAt" description:"started time"`
	TotalBackends   int         `json:"totalBackends" description:"the total replicas of each backend system component"`
	HealthyBackends int         `json:"healthyBackends" description:"the number of healthy backend components"`
}

ComponentStatus represents system component status.

type HealthStatus

type HealthStatus struct {
	KubeSphereComponents []ComponentStatus `json:"kubesphereStatus" description:"kubesphere components status"`
	NodeStatus           NodeStatus        `json:"nodeStatus" description:"nodes status"`
}

type NodeStatus

type NodeStatus struct {
	// total nodes of cluster, including master nodes
	TotalNodes int `json:"totalNodes" description:"total number of nodes"`

	// healthy nodes means nodes whose state is NodeReady
	HealthyNodes int `json:"healthyNodes" description:"the number of healthy nodes"`
}

NodeStatus assembles cluster nodes status, simply wrap unhealthy and total nodes.

Jump to

Keyboard shortcuts

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