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 {
183
183
s .scope .Info ("no EKS nodegroup role specified, using role based on nodegroup name" )
184
184
roleName , err = eks .GenerateEKSName (
185
185
"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 ()),
187
187
maxIAMRoleNameLength ,
188
188
)
189
189
if err != nil {
@@ -304,7 +304,7 @@ func (s *FargateService) reconcileFargateIAMRole() (requeue bool, err error) {
304
304
s .scope .Info ("no EKS fargate role specified, using role based on fargate profile name" )
305
305
roleName , err = eks .GenerateEKSName (
306
306
"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 ),
308
308
maxIAMRoleNameLength ,
309
309
)
310
310
if err != nil {
You can’t perform that action at this time.
0 commit comments