types

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterData

type ClusterData struct {
	Nodes      []v1.Node
	Namespaces *v1.NamespaceList
	Pods       []v1.Pod
	PodsMetric []v1beta1.PodMetrics
}

type ClusterStat

type ClusterStat struct {
	MemAvailable    int64
	CpuAvailable    int64
	NodesCount      int
	NamespacesCount int
	NamespacesStat  []NamespaceStat
}

type NamespaceStat

type NamespaceStat struct {
	Name         string
	PodCount     int
	MemReq       int64
	MemUse       int64
	MemReqUse    string
	CpuReq       int64
	CpuUse       int64
	CpuReqUse    string
	ClaimFit     bool
	RespectMaxNS bool
	Spec         v1.ResourceList
}

type Parameters

type Parameters struct {
	DefaultClaim     v1.ResourceList
	RatioNsMemory    float64
	RatioNsCpu       float64
	OverCommitMemory float64
	OverCommitCpu    float64
	Margin           float64
	Labels           map[string]string
}

Jump to

Keyboard shortcuts

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