resource

package
v0.0.0-...-d296db5 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ShowLabelKey = "app"
)

Functions

func CollectClusterStatus

func CollectClusterStatus(cli api.MingleProxyClient)

func CollectDeploymentStatus

func CollectDeploymentStatus(cli api.MingleProxyClient)

Types

type ClusterStatus

type ClusterStatus struct {
	ClusterName       string
	KubernetesVersion string
	Platform          string
	Healthz           bool
	Livez             bool
	Readyz            bool
	ClusterCIDR       string
	ServiceCIDR       string
	NodeStatistics    NodeStatistics
	Allocatable       corev1.ResourceList
	Capacity          corev1.ResourceList
}

type DaemonSetStatus

type DaemonSetStatus struct {
	Name              string
	ShowName          string
	NumberAvailable   int32
	NumberUnavailable int32
	CollisionCount    *int32
	Resource          Resouces
}

type DaemonsetStatistics

type DaemonsetStatistics struct {
	List map[string][]DaemonSetStatus
}

type DeploymentStatistics

type DeploymentStatistics struct {
	List map[string][]DeploymentStatus
}

type DeploymentStatus

type DeploymentStatus struct {
	Name                string
	ShowName            string
	Replicas            int32
	ReadyReplicas       int32
	UnavailableReplicas int32
	Resource            Resouces
}

type NodeStatistics

type NodeStatistics struct {
	ReadyNodes    int32
	NotReadyNodes int32
	UnknownNodes  int32
	LostNodes     int32
}

type Resouces

type Resouces struct {
	Requests corev1.ResourceList
	Limits   corev1.ResourceList
}

type StatefulsetStatistics

type StatefulsetStatistics struct {
	List map[string][]StatefulsetStatus
}

type StatefulsetStatus

type StatefulsetStatus struct {
	Name          string
	ShowName      string
	Replicas      int32
	ReadyReplicas int32
	Resource      Resouces
}

type SummaryResourceUseage

type SummaryResourceUseage struct {
	ClusterName           string
	DeploymentStatistics  DeploymentStatistics
	StatefulsetStatistics StatefulsetStatistics
	DaemonsetStatistics   DaemonsetStatistics
}

Jump to

Keyboard shortcuts

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