File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ func (s *NodegroupService) reconcileNodegroupIAMRole() error {
183183 s .scope .Info ("no EKS nodegroup role specified, using role based on nodegroup name" )
184184 roleName , err = eks .GenerateEKSName (
185185 "nodegroup-iam-service-role" ,
186- fmt .Sprintf ("%s-%s" , s .scope .KubernetesClusterName (), s .scope .NodegroupName ()),
186+ fmt .Sprintf ("%s-%s" , s .scope .ClusterName (), s .scope .NodegroupName ()),
187187 maxIAMRoleNameLength ,
188188 )
189189 if err != nil {
@@ -304,7 +304,7 @@ func (s *FargateService) reconcileFargateIAMRole() (requeue bool, err error) {
304304 s .scope .Info ("no EKS fargate role specified, using role based on fargate profile name" )
305305 roleName , err = eks .GenerateEKSName (
306306 "fargate" ,
307- fmt .Sprintf ("%s-%s" , s .scope .KubernetesClusterName (), s .scope .FargateProfile .Spec .ProfileName ),
307+ fmt .Sprintf ("%s-%s" , s .scope .ClusterName (), s .scope .FargateProfile .Spec .ProfileName ),
308308 maxIAMRoleNameLength ,
309309 )
310310 if err != nil {
You can’t perform that action at this time.
0 commit comments