Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add condition in Failed accepted reasons #1672

Merged
merged 15 commits into from
Feb 1, 2023
7 changes: 7 additions & 0 deletions apis/v1beta1/shared_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ const (
// * "RefNotPermitted"
// * "InvalidKind"
// * "BackendNotFound"
// * "ParentRefNotPermitted"
//
// Controllers may raise this condition with other reasons,
// but should prefer to use the reasons listed above to improve
Expand All @@ -288,6 +289,12 @@ const (
// This reason is used with the "ResolvedRefs" condition when one of the
// Route's rules has a reference to a resource that does not exist.
RouteReasonBackendNotFound RouteConditionReason = "BackendNotFound"

//This reason is used with the "ResolvedRef" condition when one of
// route has not been accepted because a ParentRef references a Gateway
//in another namespace, but no ReferenceGrant allows such a reference.
RouteReasonParentRefNotPermitted RouteConditionReason = "ParentRefNotPermitted"

)

// RouteParentStatus describes the status of a route with respect to an
Expand Down