ensure openapi is up-to-date and use same kube-openapi version

This commit is contained in:
Johannes Würbach 2020-11-09 15:17:35 +01:00
parent 95df8b43dd
commit b09c680295
No known key found for this signature in database
GPG key ID: 74DB0F4D956CCCE3
4 changed files with 274 additions and 42 deletions

25
pkg/api/openapi-gen.go Normal file
View file

@ -0,0 +1,25 @@
// +build codegen
/*
Copyright 2018 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 is only a stub to ensure k8s.io/kube-openapi/cmd/openapi-gen is vendored
// so the same version of kube-openapi is used to generate and render the openapi spec
package main
import (
_ "k8s.io/kube-openapi/cmd/openapi-gen"
)