Skip to content

Commit

Permalink
fix: change report API version (kubernetes-sigs#3153)
Browse files Browse the repository at this point in the history
Signed-off-by: Mattia Lavacca <lavacca.mattia@gmail.com>
  • Loading branch information
mlavacca authored and BobyMCbobs committed Jul 10, 2024
1 parent ddd231f commit 1bcfd42
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions conformance/apis/v1/groupversion.go
Original file line number Diff line number Diff line change
@@ -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}
2 changes: 1 addition & 1 deletion conformance/utils/suite/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 1bcfd42

Please sign in to comment.