Skip to content

Commit

Permalink
Update wording on ParentRef field to require AllowedRoutes or Referen…
Browse files Browse the repository at this point in the history
…ceGrant

Signed-off-by: Nick Young <nick@isovalent.com>
  • Loading branch information
youngnick committed Dec 12, 2022
1 parent 85a7898 commit 98e0a8e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apis/v1beta1/shared_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ type CommonRouteSpec struct {
// case, the list of routes attached to those resources should also be
// merged.
//
// Note that for ParentRefs that cross namespace boundaries, the parent
// being referred to must have some mechanism to allow Routes to attach.
// Gateway has the AllowedRoutes field, for example. Any other resource
// being used as a parent across namespaces MUST either include an AllowedRoutes
// field or equivalent functionality, OR use a ReferenceGrant (if the spec
// can't have a field added).
//
// +optional
// +kubebuilder:validation:MaxItems=32
ParentRefs []ParentReference `json:"parentRefs,omitempty"`
Expand Down

0 comments on commit 98e0a8e

Please sign in to comment.