2017-11-15 23:59:47 +00:00
|
|
|
//go:generate go run generator/cleanup/main.go
|
2017-11-11 04:58:42 +00:00
|
|
|
//go:generate go run main.go
|
|
|
|
|
2017-11-10 20:23:15 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2017-11-13 21:49:28 +00: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-12 04:14:05 +00:00
|
|
|
"github.com/rancher/types/generator"
|
2017-11-28 21:32:17 +00:00
|
|
|
"k8s.io/api/apps/v1beta2"
|
|
|
|
"k8s.io/api/core/v1"
|
2017-11-11 04:58:42 +00:00
|
|
|
)
|
2017-11-10 20:23:15 +00:00
|
|
|
|
|
|
|
func main() {
|
2017-11-12 04:14:05 +00:00
|
|
|
generator.Generate(clusterSchema.Schemas)
|
|
|
|
generator.Generate(workloadSchema.Schemas)
|
|
|
|
generator.Generate(authzSchema.Schemas)
|
2017-11-28 21:32:17 +00:00
|
|
|
// Group by API group
|
2017-11-29 01:57:42 +00:00
|
|
|
generator.GenerateNativeTypes(v1.Pod{}, v1.Node{})
|
2017-11-28 21:32:17 +00:00
|
|
|
generator.GenerateNativeTypes(v1beta2.Deployment{})
|
2017-11-10 20:23:15 +00:00
|
|
|
}
|