From 947f3d655aa6026ea6e7e91803ec345fb23217e1 Mon Sep 17 00:00:00 2001 From: Mattia Lavacca Date: Wed, 12 Jun 2024 18:26:48 +0200 Subject: [PATCH] fix: change report API version Signed-off-by: Mattia Lavacca --- conformance/apis/v1/groupversion.go | 30 +++++++++++++++++++++++++++++ conformance/utils/suite/suite.go | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 conformance/apis/v1/groupversion.go diff --git a/conformance/apis/v1/groupversion.go b/conformance/apis/v1/groupversion.go new file mode 100644 index 0000000000..6bf6a62f4c --- /dev/null +++ b/conformance/apis/v1/groupversion.go @@ -0,0 +1,30 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1 + +import "k8s.io/apimachinery/pkg/runtime/schema" + +const ( + // Group is the API group for the Conformance Report API. + Group = "gateway.networking.k8s.io" + + // Version is the API version for the Conformance Report API. + Version = "v1" +) + +// GroupVersion is the API group and version for the Conformance Report API. +var GroupVersion = schema.GroupVersion{Group: Group, Version: Version} diff --git a/conformance/utils/suite/suite.go b/conformance/utils/suite/suite.go index bd1e1fe08e..027ffc24c6 100644 --- a/conformance/utils/suite/suite.go +++ b/conformance/utils/suite/suite.go @@ -458,7 +458,7 @@ func (suite *ConformanceTestSuite) Report() (*confv1.ConformanceReport, error) { return &confv1.ConformanceReport{ TypeMeta: v1.TypeMeta{ - APIVersion: "gateway.networking.k8s.io/v1alpha1", + APIVersion: confv1.GroupVersion.String(), Kind: "ConformanceReport", }, Date: time.Now().Format(time.RFC3339),