From 69fe84c2bad8890c0e9c2bf86ea3361ac330fb12 Mon Sep 17 00:00:00 2001 From: divanikus <3438036+divanikus@users.noreply.github.com> Date: Thu, 17 Oct 2024 22:09:50 +0300 Subject: [PATCH] Per KIngress ReferenceGrant --- pkg/reconciler/ingress/resources/reference_grant.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/reconciler/ingress/resources/reference_grant.go b/pkg/reconciler/ingress/resources/reference_grant.go index 44fde8a46..7def0d07a 100644 --- a/pkg/reconciler/ingress/resources/reference_grant.go +++ b/pkg/reconciler/ingress/resources/reference_grant.go @@ -27,7 +27,7 @@ import ( // Grant the resource "to" access to the resource "from" func MakeReferenceGrant(_ context.Context, ing *netv1alpha1.Ingress, to, from metav1.PartialObjectMetadata) *gatewayv1beta1.ReferenceGrant { - name := to.Name + name := ing.Name + "-" + to.Name if len(name)+len(from.Namespace) > 62 { name = name[:62-len(from.Namespace)] }