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:
21
io.cattle.cluster/v1/schema/schema.go
Normal file
21
io.cattle.cluster/v1/schema/schema.go
Normal 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{})
|
||||
)
|
Reference in New Issue
Block a user