kube

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// capacity Type
	CapacityTypeLabel          = "eks.amazonaws.com/capacityType"
	KarpenterCapacityTypeLabel = "karpenter.sh/capacity-type"

	NodeGroupLabel = "eks.amazonaws.com/nodegroup"
	ComputeType    = "eks.amazonaws.com/compute-type" // to detect fargate nodes
	ArchLabel      = "kubernetes.io/arch"
	OsLabel        = "kubernetes.io/os"
	HostNameLabel  = "kubernetes.io/hostname"

	InstanceTypeLabel = "node.kubernetes.io/instance-type"

	ZoneLabel = "topology.kubernetes.io/zone"

	// Ami ID
	NodeGroupImage = "eks.amazonaws.com/nodegroup-image"
	KarpenterImage = "karpenter.k8s.aws/instance-ami-id"
)

Variables

This section is empty.

Functions

func ClientSet

func ClientSet(configFlags *genericclioptions.ConfigFlags) (*kubernetes.Clientset, string)

ClientSet k8s clientset

func GetAge added in v0.2.0

func GetAge(creationStamp metav1.Time) string

func GetClusterName added in v0.2.0

func GetClusterName(clusterName string) (string, error)

func GetNodes

func GetNodes(configFlags *genericclioptions.ConfigFlags) ([]corev1.Node, error)

func GetRegion added in v0.2.0

func GetRegion(region string) (string, error)

func GetSA

func GetSA(configFlags *genericclioptions.ConfigFlags) ([]corev1.ServiceAccount, error)

func ReadKubeconfig added in v0.3.0

func ReadKubeconfig() (api.Config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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