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:
5
main.go
5
main.go
@@ -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{})
|
||||
}
|
||||
|
Reference in New Issue
Block a user