Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable metrics-server default addon creation for unsupported regions #8146

Conversation

gustavodiaz7722
Copy link
Contributor

@gustavodiaz7722 gustavodiaz7722 commented Jan 16, 2025

Description

This change addresses bug found in #8145 .

Metrics server addon was recently enabled for default addon creation in cluster create workflow. Cluster creation default workflow began failing in regions that do not currently support metrics-server addon

- cn-northwest-1
- cn-north-1
- us-iso-east-1
- us-isob-east-1
- us-iso-west-1
- us-isob-west-1
- us-gov-west-1
- us-gov-east-1

Until metrics-server is supported in all regions, we must disable default addon creation in the regions listed above.

Testing

  1. Manually verified default cluster creation use case in us-west-2 region eksclt create cluster . Cluster is created with default addons vpc-cni, coredsn, kube-proxy, and metrics-server installed correctly
  2. Manually verified default cluster creation use case in cn-northwest-1 region ./eksctl create cluster --region cn-northwest-1 . Cluster is created with default addons vpc-cni, coredns, and kube-proxy installed correctly. Metrics server is skipped.

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the userdocs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes
  • (Core team) Added labels for change area (e.g. area/nodegroup) and kind (e.g. kind/improvement)

BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯

  • Backfilled missing tests for code in same general area 🎉
  • Refactored something and made the world a better place 🌟

Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@gustavodiaz7722 gustavodiaz7722 enabled auto-merge (squash) January 16, 2025 20:12
@@ -18,15 +18,15 @@ import (
"github.com/weaveworks/eksctl/pkg/utils/tasks"
)

func CreateAddonTasks(ctx context.Context, cfg *api.ClusterConfig, clusterProvider *eks.ClusterProvider, iamRoleCreator IAMRoleCreator, forceAll bool, timeout time.Duration) (*tasks.TaskTree, *tasks.TaskTree, *tasks.GenericTask, []string) {
func CreateAddonTasks(ctx context.Context, cfg *api.ClusterConfig, clusterProvider *eks.ClusterProvider, iamRoleCreator IAMRoleCreator, forceAll bool, timeout time.Duration, region string) (*tasks.TaskTree, *tasks.TaskTree, *tasks.GenericTask, []string) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: region already exists in cfg.ClusterConfig.Metadata.Region

@gustavodiaz7722 gustavodiaz7722 merged commit 5c9ecf1 into eksctl-io:main Jan 16, 2025
13 of 16 checks passed
@gustavodiaz7722 gustavodiaz7722 deleted the bug/metrics-server-unsupported-region branch January 17, 2025 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants