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

[Bug] cluster name is not validated #8033

Open
cartermckinnon opened this issue Nov 12, 2024 · 1 comment
Open

[Bug] cluster name is not validated #8033

cartermckinnon opened this issue Nov 12, 2024 · 1 comment

Comments

@cartermckinnon
Copy link

What were you trying to accomplish?

What happened?

eksctl uses the cluster name:

Name string `json:"name"`

as a label value on e.g. Node objects:

ClusterNameLabel = "alpha.eksctl.io/cluster-name"

But the requirements for a label value are more restrictive than cluster names on EKS. Kubernetes label values can be up to 63 characters in length, while EKS cluster names can be up to 100 characters in length.

k8s docs: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set
EKS docs: https://docs.aws.amazon.com/eks/latest/APIReference/API_CreateCluster.html#AmazonEKS-CreateCluster-request-name

eksctl should enforce its more strict requirements.

How to reproduce it?

Anything else we need to know?

N/A

Versions

All.

Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant