From 81d002b9aa3edc89a65718c49a1b728a4621891b Mon Sep 17 00:00:00 2001 From: Kubernetes Prow Robot Date: Wed, 1 Feb 2023 06:27:06 -0800 Subject: [PATCH] Merge pull request #1672 from Sajiyah-Salat/main Add condition in Failed accepted reasons --- apis/v1beta1/shared_types.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apis/v1beta1/shared_types.go b/apis/v1beta1/shared_types.go index 7f70930be4..419e769b6d 100644 --- a/apis/v1beta1/shared_types.go +++ b/apis/v1beta1/shared_types.go @@ -214,6 +214,7 @@ const ( // * "NotAllowedByListeners" // * "NoMatchingListenerHostname" // * "UnsupportedValue" + // * "ParentRefNotPermitted" // // Possible reasons for this condition to be Unknown are: // @@ -247,6 +248,11 @@ const ( // is not recognized. RouteReasonUnsupportedValue RouteConditionReason = "UnsupportedValue" + // This reason is used with the "Accepted" condition when the route has not + // been accepted by a Gateway because it has a cross-namespace parentRef, + // but no ReferenceGrant in the other namespace allows such a reference. + RouteReasonParentRefNotPermitted RouteConditionReason = "ParentRefNotPermitted" + // This reason is used with the "Accepted" when a controller has not yet // reconciled the route. RouteReasonPending RouteConditionReason = "Pending"