1
0
mirror of https://github.com/rancher/types.git synced 2025-04-30 03:13:19 +00:00
types/main.go

23 lines
719 B
Go
Raw Normal View History

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-12-04 23:42:18 +00:00
clusterSchema "github.com/rancher/types/apis/cluster.cattle.io/v3/schema"
managementSchema "github.com/rancher/types/apis/management.cattle.io/v3/schema"
projectSchema "github.com/rancher/types/apis/project.cattle.io/v3/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-12-04 23:42:18 +00:00
generator.Generate(managementSchema.Schemas)
2017-11-12 04:14:05 +00:00
generator.Generate(clusterSchema.Schemas)
2017-12-04 23:42:18 +00:00
generator.Generate(projectSchema.Schemas)
2017-11-28 21:32:17 +00:00
// Group by API group
2017-11-29 02:35:47 +00:00
generator.GenerateNativeTypes(v1.Pod{}, v1.Node{}, v1.ComponentStatus{})
2017-11-28 21:32:17 +00:00
generator.GenerateNativeTypes(v1beta2.Deployment{})
2017-11-10 20:23:15 +00:00
}