From 76aaf9bdef2dfa543b45916dba747fcdc18cd24c Mon Sep 17 00:00:00 2001 From: Gustavo Diaz Date: Wed, 8 Jan 2025 23:28:49 +0000 Subject: [PATCH] Support create cluster default addon metrics-server --- pkg/apis/eksctl.io/v1alpha5/addon.go | 1 + pkg/apis/eksctl.io/v1alpha5/known_addons.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/pkg/apis/eksctl.io/v1alpha5/addon.go b/pkg/apis/eksctl.io/v1alpha5/addon.go index 707572c0cb..a4c8032b05 100644 --- a/pkg/apis/eksctl.io/v1alpha5/addon.go +++ b/pkg/apis/eksctl.io/v1alpha5/addon.go @@ -17,6 +17,7 @@ const ( KubeProxyAddon = "kube-proxy" CoreDNSAddon = "coredns" PodIdentityAgentAddon = "eks-pod-identity-agent" + MetricsServerAddon = "metrics-server" AWSEBSCSIDriverAddon = "aws-ebs-csi-driver" AWSEFSCSIDriverAddon = "aws-efs-csi-driver" ) diff --git a/pkg/apis/eksctl.io/v1alpha5/known_addons.go b/pkg/apis/eksctl.io/v1alpha5/known_addons.go index 0e586eaa1f..8bb8f789d6 100644 --- a/pkg/apis/eksctl.io/v1alpha5/known_addons.go +++ b/pkg/apis/eksctl.io/v1alpha5/known_addons.go @@ -23,6 +23,10 @@ var KnownAddons = map[string]struct { }, AWSEBSCSIDriverAddon: {}, AWSEFSCSIDriverAddon: {}, + MetricsServerAddon: { + IsDefault: true, + CreateBeforeNodeGroup: true, + }, } // HasDefaultAddons reports whether addons contains at least one default addon.