Skip to content

Commit

Permalink
Merge pull request #982 from jpeach/rename-parent-ref
Browse files Browse the repository at this point in the history
Rename ParentRef to be consistent with other reference types.
  • Loading branch information
k8s-ci-robot authored Jan 12, 2022
2 parents 4e3cc7a + f510f74 commit 85dab2a
Show file tree
Hide file tree
Showing 10 changed files with 89 additions and 89 deletions.
8 changes: 4 additions & 4 deletions apis/v1alpha2/shared_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// ParentRef identifies an API object (usually a Gateway) that can be considered
// ParentReference identifies an API object (usually a Gateway) that can be considered
// a parent of this resource (usually a route). The only kind of parent resource
// with "Core" support is Gateway. This API may be extended in the future to
// support additional kinds of parent resources, such as HTTPRoute.
Expand All @@ -31,7 +31,7 @@ import (
// References to objects with invalid Group and Kind are not valid, and must
// be rejected by the implementation, with appropriate Conditions set
// on the containing object.
type ParentRef struct {
type ParentReference struct {
// Group is the group of the referent.
//
// Support: Core
Expand Down Expand Up @@ -111,7 +111,7 @@ type CommonRouteSpec struct {
//
// +optional
// +kubebuilder:validation:MaxItems=32
ParentRefs []ParentRef `json:"parentRefs,omitempty"`
ParentRefs []ParentReference `json:"parentRefs,omitempty"`
}

// PortNumber defines a network port.
Expand Down Expand Up @@ -170,7 +170,7 @@ const (
type RouteParentStatus struct {
// ParentRef corresponds with a ParentRef in the spec that this
// RouteParentStatus struct describes the status of.
ParentRef ParentRef `json:"parentRef"`
ParentRef ParentReference `json:"parentRef"`

// ControllerName is a domain/path string that indicates the name of the
// controller that wrote this status. This corresponds with the
Expand Down
10 changes: 5 additions & 5 deletions apis/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions config/crd/experimental/gateway.networking.k8s.io_httproutes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions config/crd/experimental/gateway.networking.k8s.io_tcproutes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions config/crd/experimental/gateway.networking.k8s.io_tlsroutes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions config/crd/experimental/gateway.networking.k8s.io_udproutes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions config/crd/stable/gateway.networking.k8s.io_httproutes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions config/crd/stable/gateway.networking.k8s.io_tcproutes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions config/crd/stable/gateway.networking.k8s.io_tlsroutes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions config/crd/stable/gateway.networking.k8s.io_udproutes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 85dab2a

Please sign in to comment.