Skip to content

Commit

Permalink
Update the sigs.k8s.io/gateway-api package
Browse files Browse the repository at this point in the history
`ParentRef` -> `ParentReference`, as per
kubernetes-sigs/gateway-api#982.
  • Loading branch information
mmalecki committed Apr 15, 2022
1 parent bbb5aa0 commit ee88227
Show file tree
Hide file tree
Showing 21 changed files with 159 additions and 223 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ require (
k8s.io/klog/v2 v2.30.0
k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b
sigs.k8s.io/controller-runtime v0.11.0
sigs.k8s.io/controller-tools v0.6.2
sigs.k8s.io/gateway-api v0.4.1
sigs.k8s.io/controller-tools v0.7.0
sigs.k8s.io/gateway-api v0.4.1-0.20220306235253-71fee1c2808f
sigs.k8s.io/kustomize/kyaml v0.10.17
)
110 changes: 23 additions & 87 deletions go.sum

Large diffs are not rendered by default.

130 changes: 65 additions & 65 deletions internal/dag/builder_test.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion internal/dag/gatewayapi_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ func (p *GatewayAPIProcessor) namespaceMatches(namespaces *gatewayapi_v1alpha2.R

// routeSelectsGatewayListener determines whether a route selects
// a given Gateway+Listener.
func routeSelectsGatewayListener(gateway *gatewayapi_v1alpha2.Gateway, listener gatewayapi_v1alpha2.Listener, routeParentRefs []gatewayapi_v1alpha2.ParentRef, routeNamespace string) bool {
func routeSelectsGatewayListener(gateway *gatewayapi_v1alpha2.Gateway, listener gatewayapi_v1alpha2.Listener, routeParentRefs []gatewayapi_v1alpha2.ParentReference, routeNamespace string) bool {
for _, ref := range routeParentRefs {
if ref.Group == nil || ref.Kind == nil {
continue
Expand Down
16 changes: 8 additions & 8 deletions internal/dag/gatewayapi_processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,53 +572,53 @@ func TestNamespaceMatches(t *testing.T) {

func TestRouteSelectsGatewayListener(t *testing.T) {
tests := map[string]struct {
routeParentRefs []gatewayapi_v1alpha2.ParentRef
routeParentRefs []gatewayapi_v1alpha2.ParentReference
routeNamespace string
listener gatewayapi_v1alpha2.Listener
want bool
}{
"gateway namespace specified, no listener specified, gateway in same namespace as route": {
routeParentRefs: []gatewayapi_v1alpha2.ParentRef{
routeParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef("projectcontour", "contour"),
},
want: true,
},
"gateway namespace specified, no listener specified, gateway in different namespace than route": {
routeParentRefs: []gatewayapi_v1alpha2.ParentRef{
routeParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef("different-ns-than-gateway", "contour"),
},
want: false,
},
"no gateway namespace specified, no listener specified, gateway in same namespace as route": {
routeParentRefs: []gatewayapi_v1alpha2.ParentRef{
routeParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef("", "contour"),
},
routeNamespace: "projectcontour",
want: true,
},
"no gateway namespace specified, no listener specified, gateway in different namespace than route": {
routeParentRefs: []gatewayapi_v1alpha2.ParentRef{
routeParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef("", "contour"),
},
routeNamespace: "different-ns-than-gateway",
want: false,
},
"parentRef name doesn't match gateway name": {
routeParentRefs: []gatewayapi_v1alpha2.ParentRef{
routeParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef("projectcontour", "different-name-than-gateway"),
},
want: false,
},

"section name specified, matches listener": {
routeParentRefs: []gatewayapi_v1alpha2.ParentRef{
routeParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayListenerParentRef("projectcontour", "contour", "http-listener"),
},
listener: gatewayapi_v1alpha2.Listener{Name: *gatewayapi.SectionNamePtr("http-listener")},
want: true,
},
"section name specified, does not match listener": {
routeParentRefs: []gatewayapi_v1alpha2.ParentRef{
routeParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayListenerParentRef("projectcontour", "contour", "different-listener-name"),
},
listener: gatewayapi_v1alpha2.Listener{Name: *gatewayapi.SectionNamePtr("http-listener")},
Expand Down
62 changes: 31 additions & 31 deletions internal/dag/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2802,7 +2802,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -2840,7 +2840,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -2887,7 +2887,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand All @@ -2905,7 +2905,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -2956,7 +2956,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -3005,7 +3005,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -3054,7 +3054,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -3103,7 +3103,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -3152,7 +3152,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -3201,7 +3201,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -3245,7 +3245,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -3301,7 +3301,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -3354,7 +3354,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -3412,7 +3412,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -3466,7 +3466,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -3509,7 +3509,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -4180,7 +4180,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"*.*.projectcontour.io",
Expand Down Expand Up @@ -4223,7 +4223,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"#projectcontour.io",
Expand Down Expand Up @@ -4266,7 +4266,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"1.2.3.4",
Expand Down Expand Up @@ -4309,7 +4309,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -4358,7 +4358,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -4412,7 +4412,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -4466,7 +4466,7 @@ func TestGatewayAPIHTTPRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{gatewayapi.GatewayParentRef("projectcontour", "contour")},
ParentRefs: []gatewayapi_v1alpha2.ParentReference{gatewayapi.GatewayParentRef("projectcontour", "contour")},
},
Hostnames: []gatewayapi_v1alpha2.Hostname{
"test.projectcontour.io",
Expand Down Expand Up @@ -5382,7 +5382,7 @@ func TestGatewayAPITLSRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.TLSRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{
ParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef("projectcontour", "contour"),
},
},
Expand Down Expand Up @@ -5432,7 +5432,7 @@ func TestGatewayAPITLSRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.TLSRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{
ParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef("projectcontour", "contour"),
},
},
Expand Down Expand Up @@ -5477,7 +5477,7 @@ func TestGatewayAPITLSRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.TLSRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{
ParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef("projectcontour", "contour"),
},
},
Expand Down Expand Up @@ -5528,7 +5528,7 @@ func TestGatewayAPITLSRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.TLSRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{
ParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef("projectcontour", "contour"),
},
},
Expand Down Expand Up @@ -5572,7 +5572,7 @@ func TestGatewayAPITLSRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.TLSRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{
ParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef("projectcontour", "contour"),
},
},
Expand Down Expand Up @@ -5616,7 +5616,7 @@ func TestGatewayAPITLSRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.TLSRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{
ParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef("projectcontour", "contour"),
},
},
Expand Down Expand Up @@ -5660,7 +5660,7 @@ func TestGatewayAPITLSRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.TLSRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{
ParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef("projectcontour", "contour"),
},
},
Expand Down Expand Up @@ -5701,7 +5701,7 @@ func TestGatewayAPITLSRouteDAGStatus(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.TLSRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{
ParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef(gw.Namespace, gw.Name),
},
},
Expand Down
2 changes: 1 addition & 1 deletion internal/featuretests/v3/httproute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func TestGateway_TLS(t *testing.T) {
},
Spec: gatewayapi_v1alpha2.HTTPRouteSpec{
CommonRouteSpec: gatewayapi_v1alpha2.CommonRouteSpec{
ParentRefs: []gatewayapi_v1alpha2.ParentRef{
ParentRefs: []gatewayapi_v1alpha2.ParentReference{
gatewayapi.GatewayParentRef("projectcontour", "contour"),
},
},
Expand Down
Loading

0 comments on commit ee88227

Please sign in to comment.