karpenteraws

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT-0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GiB                              int64  = 1024 * 1024 * 1024
	ClusterTagKey                    string = "kubernetes.io/cluster/"
	ALAndBottleRocketDefaultDiskSize int32  = 20
	WindowsDefaultDiskSize           int32  = 50
	TagLabelPattern                  string = `^(aws:|eksctl|alpha\.eksctl\.io|Name)`
)

Variables

View Source
var (
	NodeClassTypeMeta = metav1.TypeMeta{
		Kind:       "EC2NodeClass",
		APIVersion: awskarpenter.SchemeGroupVersion.Identifier(),
	}
	ClusterTag map[string]string
)
View Source
var (
	NodePoolTypeMeta = metav1.TypeMeta{
		Kind:       "NodePool",
		APIVersion: sigkarpenter.SchemeGroupVersion.Identifier(),
	}
)

Functions

Types

type NodeGroup

type NodeGroup struct {
	*ekstypes.Nodegroup
	LT       *ec2types.ResponseLaunchTemplateData // LT Generated by MNG and used by ASG (needed for MetadataOptions)
	CustomLT *ec2types.ResponseLaunchTemplateData // Custom LT provided to MNG
}

func NewNodeGroup

func NewNodeGroup(ng ekstypes.Nodegroup) (*NodeGroup, error)

func (NodeGroup) AMIFamily

func (n NodeGroup) AMIFamily() *string

func (NodeGroup) AMISelectorTerms

func (n NodeGroup) AMISelectorTerms() []awskarpenter.AMISelectorTerm

func (NodeGroup) AmiID

func (n NodeGroup) AmiID() string

func (NodeGroup) BlockDeviceMappings

func (n NodeGroup) BlockDeviceMappings() []*awskarpenter.BlockDeviceMapping

Returns AWS Karpenter BlockDeviceMappings for nodegroup if Custom Launch Template is used with MNG or Custom DiskSize is configured

func (NodeGroup) CapacityTypes

func (n NodeGroup) CapacityTypes() []string

func (NodeGroup) FilteredTags

func (n NodeGroup) FilteredTags() map[string]string

func (*NodeGroup) GetEC2NodeClass

func (n *NodeGroup) GetEC2NodeClass() (awskarpenter.EC2NodeClass, error)

func (*NodeGroup) GetNodePool

func (n *NodeGroup) GetNodePool() (sigkarpenter.NodePool, error)

func (NodeGroup) K8sTaints

func (n NodeGroup) K8sTaints() []corev1.Taint

func (NodeGroup) MetadataOptions

func (n NodeGroup) MetadataOptions() *awskarpenter.MetadataOptions

func (NodeGroup) Name

func (n NodeGroup) Name() string

func (NodeGroup) NodeClaimObjectMeta

func (n NodeGroup) NodeClaimObjectMeta() sigkarpenter.ObjectMeta

func (NodeGroup) NodeClaimSpec

func (n NodeGroup) NodeClaimSpec() sigkarpenter.NodeClaimSpec

func (NodeGroup) NodeClaimTemplate

func (n NodeGroup) NodeClaimTemplate() sigkarpenter.NodeClaimTemplate

func (NodeGroup) NodeClassObjectMeta

func (n NodeGroup) NodeClassObjectMeta() metav1.ObjectMeta

func (NodeGroup) NodeClassSpec

func (n NodeGroup) NodeClassSpec() awskarpenter.EC2NodeClassSpec

func (NodeGroup) NodePoolObjectMeta

func (n NodeGroup) NodePoolObjectMeta() metav1.ObjectMeta

func (NodeGroup) NodePoolSpec

func (n NodeGroup) NodePoolSpec() sigkarpenter.NodePoolSpec

func (NodeGroup) NodeSelectorRequirements

func (n NodeGroup) NodeSelectorRequirements() []sigkarpenter.NodeSelectorRequirementWithMinValues

func (NodeGroup) Role

func (n NodeGroup) Role() string

func (NodeGroup) SecurityGroupSelectorTerms

func (n NodeGroup) SecurityGroupSelectorTerms() []awskarpenter.SecurityGroupSelectorTerm

func (NodeGroup) SubnetSelectorTerms

func (n NodeGroup) SubnetSelectorTerms() []awskarpenter.SubnetSelectorTerm

func (NodeGroup) UserData

func (n NodeGroup) UserData() *string

Returns UserData for nodegroup if Custom Launch Template is used with MNG

Jump to

Keyboard shortcuts

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