From a960878f083ca518f7746d7e8745cd43187e0ab8 Mon Sep 17 00:00:00 2001 From: Tam Mach Date: Mon, 5 Feb 2024 12:35:38 +1100 Subject: [PATCH] gateway: Upgrade API version This is to avoid the below warning ``` W0205 12:29:06.703289 146168 warnings.go:70] The v1alpha2 version of ReferenceGrant has been deprecated and will be removed in a future release of the API. Please upgrade to v1beta1. ``` Signed-off-by: Tam Mach --- sysdump/constants.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sysdump/constants.go b/sysdump/constants.go index 05aa9d2295..967f039f9b 100644 --- a/sysdump/constants.go +++ b/sysdump/constants.go @@ -158,25 +158,25 @@ var ( gatewayClass = schema.GroupVersionResource{ Group: "gateway.networking.k8s.io", Resource: "gatewayclasses", - Version: "v1beta1", + Version: "v1", } gateway = schema.GroupVersionResource{ Group: "gateway.networking.k8s.io", Resource: "gateways", - Version: "v1beta1", + Version: "v1", } referenceGrant = schema.GroupVersionResource{ Group: "gateway.networking.k8s.io", Resource: "referencegrants", - Version: "v1alpha2", + Version: "v1beta1", } httpRoute = schema.GroupVersionResource{ Group: "gateway.networking.k8s.io", Resource: "httproutes", - Version: "v1beta1", + Version: "v1", } tlsRoute = schema.GroupVersionResource{