Files
klum/pkg/codegen/main.go
2020-01-24 19:06:30 -07:00

27 lines
582 B
Go

package main
import (
"os"
"github.com/ibuildthecloud/klum/pkg/apis/klum.cattle.io/v1alpha1"
controllergen "github.com/rancher/wrangler/pkg/controller-gen"
"github.com/rancher/wrangler/pkg/controller-gen/args"
)
func main() {
os.Unsetenv("GOPATH")
controllergen.Run(args.Options{
OutputPackage: "github.com/ibuildthecloud/klum/pkg/generated",
Boilerplate: "scripts/boilerplate.go.txt",
Groups: map[string]args.Group{
"klum.cattle.io": {
Types: []interface{}{
v1alpha1.User{},
v1alpha1.Kubeconfig{},
},
GenerateTypes: true,
},
},
})
}