Generate for staging directories that are not client-go

This commit is contained in:
Clayton Coleman 2017-01-14 13:08:36 -05:00
parent d2cbdbd7d4
commit 62d1ae96c1
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3
4 changed files with 8 additions and 5 deletions

View File

@ -36,7 +36,11 @@ trap "rm -f '${CACHE}'" HUP INT TERM ERR
# Example: # Example:
# kfind -type f -name foobar.go # kfind -type f -name foobar.go
function kfind() { function kfind() {
find . \ # include the "special" vendor directories which are actually part
# of the Kubernetes source tree - generators will use these for
# including certain core API concepts.
find -H . ./vendor/k8s.io/apimachinery ./vendor/k8s.io/apiserver \
\( \
-not \( \ -not \( \
\( \ \( \
-path ./vendor -o \ -path ./vendor -o \
@ -47,6 +51,7 @@ function kfind() {
-path ./examples \ -path ./examples \
\) -prune \ \) -prune \
\) \ \) \
\) \
"$@" "$@"
} }

View File

@ -15,7 +15,7 @@ limitations under the License.
*/ */
// +k8s:deepcopy-gen=package // +k8s:deepcopy-gen=package
// +k8s:openapi-gen=true // +k8s:openapi-gen=false
// +k8s:defaulter-gen=TypeMeta // +k8s:defaulter-gen=TypeMeta
// +groupName=meta.k8s.io // +groupName=meta.k8s.io

View File

@ -41,5 +41,6 @@ limitations under the License.
// //
// As a bonus, a few common types useful from all api objects and versions // As a bonus, a few common types useful from all api objects and versions
// are provided in types.go. // are provided in types.go.
// +k8s:openapi-gen=false
package runtime // import "k8s.io/kubernetes/pkg/runtime" package runtime // import "k8s.io/kubernetes/pkg/runtime"

View File

@ -32,7 +32,6 @@ package runtime
// //
// +k8s:deepcopy-gen=true // +k8s:deepcopy-gen=true
// +protobuf=true // +protobuf=true
// +k8s:openapi-gen=true
type TypeMeta struct { type TypeMeta struct {
// +optional // +optional
APIVersion string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty" protobuf:"bytes,1,opt,name=apiVersion"` APIVersion string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty" protobuf:"bytes,1,opt,name=apiVersion"`
@ -88,7 +87,6 @@ const (
// //
// +k8s:deepcopy-gen=true // +k8s:deepcopy-gen=true
// +protobuf=true // +protobuf=true
// +k8s:openapi-gen=true
type RawExtension struct { type RawExtension struct {
// Raw is the underlying serialization of this object. // Raw is the underlying serialization of this object.
// //
@ -107,7 +105,6 @@ type RawExtension struct {
// //
// +k8s:deepcopy-gen=true // +k8s:deepcopy-gen=true
// +protobuf=true // +protobuf=true
// +k8s:openapi-gen=true
type Unknown struct { type Unknown struct {
TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"` TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"`
// Raw will hold the complete serialized object which couldn't be matched // Raw will hold the complete serialized object which couldn't be matched