Skip to content

Commit 3c99ac5

Browse files
committed
chore: bump ReferenceGrant from v1beta1 to v1
1 parent e82a27b commit 3c99ac5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/provider/k8sreferencegrantroutescountprovider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const (
2222
func NewK8sReferenceGrantCountProvider(name string, m metadata.Interface, rm meta.RESTMapper) (Provider, error) {
2323
gvr := schema.GroupVersionResource{
2424
Group: "gateway.networking.k8s.io",
25-
Version: "v1beta1",
25+
Version: "v1",
2626
Resource: "referencegrants",
2727
}
2828
return NewK8sObjectCountProviderWithRESTMapper(name, ReferenceGrantCountKind, m, gvr, rm)

pkg/telemetry/workflowsk8s_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func TestWorkflowClusterState(t *testing.T) {
168168
Name: "httproute-1",
169169
},
170170
},
171-
&gatewayv1beta1.ReferenceGrant{
171+
&gatewayv1.ReferenceGrant{
172172
ObjectMeta: metav1.ObjectMeta{
173173
Namespace: "kong",
174174
Name: "referencegrant-1",
@@ -313,7 +313,7 @@ func TestWorkflowClusterState(t *testing.T) {
313313
provider.HTTPRouteCountKey: 1,
314314
provider.GatewayClassCountKey: 1,
315315
provider.GatewayCountKey: 0, // This should be equal to 1 but see above for comment explaining the issue.
316-
// gateway.networking.k8s.io v1beta1
316+
// gateway.networking.k8s.io v1
317317
provider.ReferenceGrantCountKey: 1,
318318
// gateway.networking.k8s.io v1alpha2
319319
provider.TCPRouteCountKey: 1,

0 commit comments

Comments
 (0)