1
0
mirror of https://github.com/rancher/types.git synced 2025-09-15 22:39:05 +00:00

Update cluster API

This commit is contained in:
Darren Shepherd
2017-11-10 21:57:13 -07:00
parent e5fba2b896
commit 01267d288d
3 changed files with 47 additions and 13 deletions

View File

@@ -0,0 +1,21 @@
package schema
import (
"github.com/rancher/norman/types"
"github.com/rancher/types/io.cattle.cluster/v1"
)
var (
Version = types.APIVersion{
Version: "v1",
Group: "io.cattle.cluster",
Path: "/v1-cluster",
SubContexts: map[string]bool{
"projects": true,
},
}
Schemas = types.NewSchemas().
MustImport(&Version, v1.Cluster{}).
MustImport(&Version, v1.ClusterNode{})
)