Documentation ¶
Index ¶
- Constants
- func ClientSet(configFlags *genericclioptions.ConfigFlags) (*kubernetes.Clientset, string)
- func GetAge(creationStamp metav1.Time) string
- func GetClusterName(clusterName string) (string, error)
- func GetNodes(configFlags *genericclioptions.ConfigFlags) ([]corev1.Node, error)
- func GetRegion(region string) (string, error)
- func GetSA(configFlags *genericclioptions.ConfigFlags) ([]corev1.ServiceAccount, error)
- func ReadKubeconfig() (api.Config, error)
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 GetClusterName ¶ added in v0.2.0
func GetNodes ¶
func GetNodes(configFlags *genericclioptions.ConfigFlags) ([]corev1.Node, error)
func GetSA ¶
func GetSA(configFlags *genericclioptions.ConfigFlags) ([]corev1.ServiceAccount, error)
func ReadKubeconfig ¶ added in v0.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.