We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5236d3 commit b743dc0Copy full SHA for b743dc0
internal/controllers/accessrequest/controller.go
@@ -392,7 +392,8 @@ func (r *AccessRequestReconciler) SetupWithManager(mgr ctrl.Manager) error {
392
}
393
394
func defaultSecretName(ar *clustersv1alpha1.AccessRequest) string {
395
- return ar.Name
+ suffix := ".kubeconfig"
396
+ return ctrlutils.ShortenToXCharactersUnsafe(ar.Name, ctrlutils.K8sMaxNameLength-len(suffix)) + suffix
397
398
399
type shootAccessGetter func() (*shootAccess, errutils.ReasonableError)
0 commit comments