cluster

package
v0.0.0-...-615e99e Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocatedResources

type AllocatedResources struct {
	Limits  ResourceList `json:"limits"`
	Request ResourceList `json:"request"`
}

type INode

type INode interface {
	NodeDescribeList(isAll bool) map[string]*NodeDescribe
	NodesTotal() ResourceList
	NodesRemain() ResourceList
}

type Node

type Node struct {
	// contains filtered or unexported fields
}

func NewNodeInfo

func NewNodeInfo(nodesList *corev1.NodeList, podList *corev1.PodList) *Node

func (*Node) NodeDescribeList

func (n *Node) NodeDescribeList(isAll bool) map[string]*NodeDescribe

func (*Node) NodesRemain

func (n *Node) NodesRemain() ResourceList

func (*Node) NodesTotal

func (n *Node) NodesTotal() ResourceList

type NodeDescribe

type NodeDescribe struct {
	Name        string            `json:"name,omitempty"`
	Role        string            `json:"role,omitempty"`
	Labels      map[string]string `json:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`

	Taints             []corev1.Taint          `json:"taints,omitempty"`
	Unschedulable      bool                    `json:"unschedulable,omitempty"`
	Lease              *corrdinv1.Lease        `json:"lease,omitempty"`
	Conditions         *[]corev1.NodeCondition `json:"conditions,omitempty"`
	Address            *[]corev1.NodeAddress   `json:"address,omitempty"`
	Capacity           *ResourceList           `json:"capacity,omitempty"`
	Allocatable        *ResourceList           `json:"allocatable,omitempty"`
	SystemInfo         *corev1.NodeSystemInfo  `json:"systemInfo,omitempty"`
	PodCIDR            string                  `json:"podCIDR,omitempty"`
	PodCIDRs           *[]string               `json:"podCIDRs,omitempty"`
	NonTerminatedPods  *[]NonTerminatedPod     `json:"nonTerminatedPods,omitempty"`
	AllocatedResources AllocatedResources      `json:"allocatedResources,omitempty"`
}

type NonTerminatedPod

type NonTerminatedPod struct {
	NameSpace string       `json:"namespace"`
	Name      string       `json:"name"`
	Limits    ResourceList `json:"limits"`
	Request   ResourceList `json:"request"`
}

type ResourceList

type ResourceList map[string]float64

Jump to

Keyboard shortcuts

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