add k8s defaults

This commit is contained in:
Daniel Smith
2016-08-30 13:15:37 -07:00
parent d3fec56bcb
commit 29977bd1a7
3 changed files with 7 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ package main
import (
"os"
"path/filepath"
"k8s.io/gengo/args"
"k8s.io/gengo/examples/set-gen/generators"
@@ -40,6 +41,7 @@ func main() {
// locations.
arguments.InputDirs = []string{"k8s.io/kubernetes/pkg/util/sets/types"}
arguments.OutputPackagePath = "k8s.io/kubernetes/pkg/util/sets"
arguments.GoHeaderFilePath = filepath.Join(args.DefaultSourceTree(), "k8s.io/kubernetes/hack/boilerplate/boilerplate.go.txt")
if err := arguments.Execute(
generators.NameSystems(),