Skip to content

Commit

Permalink
chore: address missed HTTPRoute v1alpha2 references
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Sep 7, 2022
1 parent faa940f commit 9568556
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions internal/dataplane/parser/translate_httproute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
// Kubernetes API.
var httprouteGVK = schema.GroupVersionKind{
Group: "gateway.networking.k8s.io",
Version: "v1alpha2",
Version: "v1beta1",
Kind: "HTTPRoute",
}

Expand Down Expand Up @@ -120,7 +120,7 @@ func Test_ingressRulesFromHTTPRoutes(t *testing.T) {
Annotations: make(map[string]string),
GroupVersionKind: schema.GroupVersionKind{
Group: "gateway.networking.k8s.io",
Version: "v1alpha2",
Version: "v1beta1",
Kind: "HTTPRoute",
},
},
Expand Down Expand Up @@ -160,7 +160,7 @@ func Test_ingressRulesFromHTTPRoutes(t *testing.T) {
},
TypeMeta: metav1.TypeMeta{
Kind: "HTTPRoute",
APIVersion: "gateway.networking.k8s.io/v1alpha2",
APIVersion: "gateway.networking.k8s.io/v1beta1",
},
},
},
Expand Down Expand Up @@ -274,7 +274,7 @@ func Test_ingressRulesFromHTTPRoutes(t *testing.T) {
Annotations: make(map[string]string),
GroupVersionKind: schema.GroupVersionKind{
Group: "gateway.networking.k8s.io",
Version: "v1alpha2",
Version: "v1beta1",
Kind: "HTTPRoute",
},
},
Expand Down Expand Up @@ -318,7 +318,7 @@ func Test_ingressRulesFromHTTPRoutes(t *testing.T) {
},
TypeMeta: metav1.TypeMeta{
Kind: "HTTPRoute",
APIVersion: "gateway.networking.k8s.io/v1alpha2",
APIVersion: "gateway.networking.k8s.io/v1beta1",
},
},
},
Expand Down Expand Up @@ -461,7 +461,7 @@ func Test_ingressRulesFromHTTPRoutes(t *testing.T) {
Annotations: make(map[string]string),
GroupVersionKind: schema.GroupVersionKind{
Group: "gateway.networking.k8s.io",
Version: "v1alpha2",
Version: "v1beta1",
Kind: "HTTPRoute",
},
},
Expand Down Expand Up @@ -505,7 +505,7 @@ func Test_ingressRulesFromHTTPRoutes(t *testing.T) {
},
TypeMeta: metav1.TypeMeta{
Kind: "HTTPRoute",
APIVersion: "gateway.networking.k8s.io/v1alpha2",
APIVersion: "gateway.networking.k8s.io/v1beta1",
},
},
},
Expand Down Expand Up @@ -584,7 +584,7 @@ func Test_ingressRulesFromHTTPRoutes(t *testing.T) {
Annotations: make(map[string]string),
GroupVersionKind: schema.GroupVersionKind{
Group: "gateway.networking.k8s.io",
Version: "v1alpha2",
Version: "v1beta1",
Kind: "HTTPRoute",
},
},
Expand Down Expand Up @@ -628,7 +628,7 @@ func Test_ingressRulesFromHTTPRoutes(t *testing.T) {
},
TypeMeta: metav1.TypeMeta{
Kind: "HTTPRoute",
APIVersion: "gateway.networking.k8s.io/v1alpha2",
APIVersion: "gateway.networking.k8s.io/v1beta1",
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion internal/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ func mkObjFromGVK(gvk schema.GroupVersionKind) (runtime.Object, error) {
// ----------------------------------------------------------------------------
// Kubernetes Gateway APIs
// ----------------------------------------------------------------------------
case gatewayv1alpha2.SchemeGroupVersion.WithKind("HTTPRoutes"):
case gatewayv1beta1.SchemeGroupVersion.WithKind("HTTPRoutes"):
return &gatewayv1beta1.HTTPRoute{}, nil
// ----------------------------------------------------------------------------
// Kong APIs
Expand Down

0 comments on commit 9568556

Please sign in to comment.