Documentation ¶
Index ¶
- Constants
- func DoAddonsSupportMultiArch(ctx context.Context, clientSet kubernetes.Interface) (bool, error)
- func DoesAWSNodeSupportMultiArch(ctx context.Context, clientSet kubernetes.Interface) (bool, error)
- func UpdateAWSNode(ctx context.Context, input AddonInput, plan bool) (bool, error)
- func UpdateCoreDNS(ctx context.Context, input AddonInput, plan bool) (bool, error)
- func UpdateKubeProxy(ctx context.Context, input AddonInput, plan bool) (bool, error)
- type AddonInput
- type AddonVersionDescriber
Constants ¶
const ( // CoreDNS is the name of the coredns addon CoreDNS = "coredns" // KubeDNS is the name of the kube-dns addon KubeDNS = "kube-dns" )
const (
// AWSNode is the name of the aws-node addon
AWSNode = "aws-node"
)
const (
// KubeProxy is the name of the kube-proxy addon
KubeProxy = "kube-proxy"
)
Variables ¶
This section is empty.
Functions ¶
func DoAddonsSupportMultiArch ¶
DoAddonsSupportMultiArch checks if the coredns/kubeproxy/awsnode support multi arch nodegroups We know that AWS node requires 1.6.3+ to work, so we check for that. For kube-proxy and CoreDNS, we do not know what version adds support, so we just ensure they contain a node affinity that allows them to be scheduled on ARM64 nodes.
func DoesAWSNodeSupportMultiArch ¶
DoesAWSNodeSupportMultiArch makes sure awsnode supports ARM nodes
func UpdateAWSNode ¶
UpdateAWSNode will update the `aws-node` add-on and returns true if an update is available.
func UpdateCoreDNS ¶
UpdateCoreDNS will update the `coredns` add-on and returns true if an update is available
func UpdateKubeProxy ¶ added in v0.41.0
UpdateKubeProxy updates image tag for kube-system:daemonset/kube-proxy based to match ControlPlaneVersion
Types ¶
type AddonInput ¶ added in v0.75.0
type AddonInput struct { RawClient kubernetes.RawClientInterface AddonVersionDescriber AddonVersionDescriber ControlPlaneVersion string Region string }
type AddonVersionDescriber ¶ added in v0.184.0
type AddonVersionDescriber interface { // DescribeAddonVersions describes the versions for an addon. DescribeAddonVersions(ctx context.Context, params *eks.DescribeAddonVersionsInput, optFns ...func(options *eks.Options)) (*eks.DescribeAddonVersionsOutput, error) }
AddonVersionDescriber describes the versions for an addon.