mirror of
https://github.com/rancher/steve.git
synced 2025-09-03 16:35:25 +00:00
Register apply structs
This commit is contained in:
@@ -21,6 +21,9 @@ import (
|
|||||||
|
|
||||||
func Register(ctx context.Context, apiSchemas *types.APISchemas, cg proxy.ClientGetter, schemaFactory steveschema.Factory) {
|
func Register(ctx context.Context, apiSchemas *types.APISchemas, cg proxy.ClientGetter, schemaFactory steveschema.Factory) {
|
||||||
apiSchemas.InternalSchemas.TypeName("management.cattle.io.cluster", Cluster{})
|
apiSchemas.InternalSchemas.TypeName("management.cattle.io.cluster", Cluster{})
|
||||||
|
|
||||||
|
apiSchemas.MustImportAndCustomize(&ApplyInput{}, nil)
|
||||||
|
apiSchemas.MustImportAndCustomize(&ApplyOutput{}, nil)
|
||||||
apiSchemas.MustImportAndCustomize(Cluster{}, func(schema *types.APISchema) {
|
apiSchemas.MustImportAndCustomize(Cluster{}, func(schema *types.APISchema) {
|
||||||
schema.CollectionMethods = []string{http.MethodGet}
|
schema.CollectionMethods = []string{http.MethodGet}
|
||||||
schema.ResourceMethods = []string{http.MethodGet}
|
schema.ResourceMethods = []string{http.MethodGet}
|
||||||
|
Reference in New Issue
Block a user