Add v1 API as a default conversion peer

Some of the APIs call do not this out, and a partial build produces
wrong results.
This commit is contained in:
Tim Hockin 2017-08-21 15:55:56 -07:00
parent 36910232ab
commit 478ce3453e

View File

@ -52,9 +52,12 @@ func main() {
arguments.GoHeaderFilePath = filepath.Join(args.DefaultSourceTree(), "k8s.io/kubernetes/hack/boilerplate/boilerplate.go.txt")
// Custom args.
// TODO: make callers pass this in. It is too opaque here, and any use of
// the flag that DOESN'T include these is broken.
customArgs := &generators.CustomArgs{
ExtraPeerDirs: []string{
"k8s.io/kubernetes/pkg/api",
"k8s.io/kubernetes/pkg/api/v1",
"k8s.io/api/core/v1",
"k8s.io/apimachinery/pkg/apis/meta/v1",
"k8s.io/apimachinery/pkg/conversion",