2017-11-15 16:59:47 -07:00
|
|
|
//go:generate go run generator/cleanup/main.go
|
2017-11-10 21:58:42 -07:00
|
|
|
//go:generate go run main.go
|
|
|
|
|
2017-11-10 13:23:15 -07:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2017-11-13 14:49:28 -07:00
|
|
|
authzSchema "github.com/rancher/types/apis/authorization.cattle.io/v1/schema"
|
|
|
|
clusterSchema "github.com/rancher/types/apis/cluster.cattle.io/v1/schema"
|
|
|
|
workloadSchema "github.com/rancher/types/apis/workload.cattle.io/v1/schema"
|
2017-11-11 21:14:05 -07:00
|
|
|
"github.com/rancher/types/generator"
|
2017-11-28 14:32:17 -07:00
|
|
|
"k8s.io/api/apps/v1beta2"
|
|
|
|
"k8s.io/api/core/v1"
|
2017-11-10 21:58:42 -07:00
|
|
|
)
|
2017-11-10 13:23:15 -07:00
|
|
|
|
|
|
|
func main() {
|
2017-11-11 21:14:05 -07:00
|
|
|
generator.Generate(clusterSchema.Schemas)
|
|
|
|
generator.Generate(workloadSchema.Schemas)
|
|
|
|
generator.Generate(authzSchema.Schemas)
|
2017-11-28 14:32:17 -07:00
|
|
|
// Group by API group
|
|
|
|
generator.GenerateNativeTypes(v1.Pod{})
|
|
|
|
generator.GenerateNativeTypes(v1beta2.Deployment{})
|
2017-11-10 13:23:15 -07:00
|
|
|
}
|