use gengo dep

This commit is contained in:
Daniel Smith
2016-09-21 13:56:00 -07:00
parent e67cf8a264
commit 52a96d95c0
3 changed files with 12 additions and 9 deletions

View File

@@ -20,7 +20,9 @@ limitations under the License.
package main
import (
"k8s.io/kubernetes/cmd/libs/go2idl/args"
"path/filepath"
"k8s.io/gengo/args"
"k8s.io/kubernetes/cmd/libs/go2idl/openapi-gen/generators"
"github.com/golang/glog"
@@ -31,6 +33,7 @@ func main() {
// Override defaults.
arguments.OutputFileBaseName = "openapi_generated"
arguments.GoHeaderFilePath = filepath.Join(args.DefaultSourceTree(), "k8s.io/kubernetes/hack/boilerplate/boilerplate.go.txt")
// Run it.
if err := arguments.Execute(