mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-18 16:01:53 +00:00
Update openapi bazel build to support vendored build
This will enable vendoring projects like federation to generate openapi code for k8s.io/kubernetes.
This commit is contained in:
9
build/openapi.bzl
Normal file
9
build/openapi.bzl
Normal file
@@ -0,0 +1,9 @@
|
||||
# A project wanting to generate openapi code for vendored
|
||||
# k8s.io/kubernetes will need to set the following variables in
|
||||
# //build/openapi.bzl in their project and customize the go prefix:
|
||||
#
|
||||
# openapi_go_prefix = "k8s.io/myproject/"
|
||||
# openapi_vendor_prefix = "vendor/k8s.io/kubernetes/"
|
||||
|
||||
openapi_go_prefix = "k8s.io/kubernetes/"
|
||||
openapi_vendor_prefix = ""
|
Reference in New Issue
Block a user