pkg

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AwsNodepoolLabel  = "eks.amazonaws.com/nodegroup"
	GkeNodepoolLabel  = "cloud.google.com/gke-nodepool"
	AksNodepoolLabel  = "kubernetes.azure.com/agentpool"
	KarpenterNodepool = "karpenter.sh/provisioner-name"

	NodeInstanceTypeLabel = "node.kubernetes.io/instance-type"
	TopologyRegionLabel   = "topology.kubernetes.io/region"
	TopologyZoneLabel     = "topology.kubernetes.io/zone"
)

required constants used across the CLI commands (mostly well-known labels, annotations etc.,)

Variables

This section is empty.

Functions

func GetNodeTopologyInfo

func GetNodeTopologyInfo(labels map[string]string) (string, string)

GetNodeTopologyInfo retrieves region and zone info from topology labels

Types

type GenericNodeInfo

type GenericNodeInfo struct {
	NodeName           string
	K8sVersion         string
	Image              string
	Os                 string
	OsArch             string
	NodeStatus         string
	Taints             []string
	NodeProvider       string
	NodeTopologyRegion string
	NodeTopologyZone   string
}

GenericNodeInfo struct used for 'node' info command

type GenericNodepoolInfo

type GenericNodepoolInfo struct {
	NodepoolID   string
	Node         string
	Provider     string
	InstanceType string
	Region       string
	Zone         string
	K8sVersion   string
}

GenericNodepoolInfo required node pool info which is used 'nodepool' command

type NodeCapacities

type NodeCapacities struct {
	NodeName         string
	CPU              string // cores
	Memory           int64  // bytes
	Disk             int64  // bytes
	EphemeralStorage int64  // bytes
	PodCapacity      string // count
}

NodeCapacities required node capacity related info. Used by 'node capacity' command

type OutputOptsForGenericNodeInfo

type OutputOptsForGenericNodeInfo struct {
	ShowTaints           bool
	ShowNodeProviderInfo bool
	ShowNodeTopologyInfo bool
}

OutputOptsForGenericNodeInfo options set via flags, mostly used in the table-writer for output format selections

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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