Skip to content

Commit b743dc0

Browse files
committed
rename AccessRequest secret
1 parent b5236d3 commit b743dc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/controllers/accessrequest/controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ func (r *AccessRequestReconciler) SetupWithManager(mgr ctrl.Manager) error {
392392
}
393393

394394
func defaultSecretName(ar *clustersv1alpha1.AccessRequest) string {
395-
return ar.Name
395+
suffix := ".kubeconfig"
396+
return ctrlutils.ShortenToXCharactersUnsafe(ar.Name, ctrlutils.K8sMaxNameLength-len(suffix)) + suffix
396397
}
397398

398399
type shootAccessGetter func() (*shootAccess, errutils.ReasonableError)

0 commit comments

Comments
 (0)