pkg

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MPL-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
	KarpenterNodepoolV1  = "karpenter.sh/nodepool"
	OpenshiftMachinepool = "hive.openshift.io/machine-pool"

	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