1
0
mirror of https://github.com/rancher/types.git synced 2025-09-12 13:03:45 +00:00

Update generator for native types

This commit is contained in:
Darren Shepherd
2017-11-28 14:32:17 -07:00
parent 0a0a5647cf
commit 7917ce217d
6 changed files with 86 additions and 7 deletions

View File

@@ -8,10 +8,15 @@ import (
clusterSchema "github.com/rancher/types/apis/cluster.cattle.io/v1/schema"
workloadSchema "github.com/rancher/types/apis/workload.cattle.io/v1/schema"
"github.com/rancher/types/generator"
"k8s.io/api/apps/v1beta2"
"k8s.io/api/core/v1"
)
func main() {
generator.Generate(clusterSchema.Schemas)
generator.Generate(workloadSchema.Schemas)
generator.Generate(authzSchema.Schemas)
// Group by API group
generator.GenerateNativeTypes(v1.Pod{})
generator.GenerateNativeTypes(v1beta2.Deployment{})
}