Skip to content

Commit

Permalink
Merge pull request #4463 from pluralsh/fixx-node-role-name
Browse files Browse the repository at this point in the history
fix: don't generate nodegroup role name starting with hyphen
  • Loading branch information
k8s-ci-robot authored Sep 25, 2023
2 parents 7e3d2cd + 22de8bb commit 526cedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloud/services/eks/roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ func (s *NodegroupService) reconcileNodegroupIAMRole() error {
} else {
s.scope.Info("no EKS nodegroup role specified, using role based on nodegroup name")
roleName, err = eks.GenerateEKSName(
"nodegroup-iam-service-role",
fmt.Sprintf("%s-%s", s.scope.KubernetesClusterName(), s.scope.NodegroupName()),
"-nodegroup-iam-service-role",
maxIAMRoleNameLength,
)
if err != nil {
Expand Down

0 comments on commit 526cedf

Please sign in to comment.