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 f61f23c589..3e6e1a0750 100644 --- a/conformance/utils/suite/suite.go +++ b/conformance/utils/suite/suite.go @@ -455,7 +455,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),