Register apply structs

This commit is contained in:
Darren Shepherd 2021-03-01 22:39:52 -07:00
parent 6b2a9678f1
commit c1ea7b9626

View File

@ -21,6 +21,9 @@ import (
func Register(ctx context.Context, apiSchemas *types.APISchemas, cg proxy.ClientGetter, schemaFactory steveschema.Factory) {
apiSchemas.InternalSchemas.TypeName("management.cattle.io.cluster", Cluster{})
apiSchemas.MustImportAndCustomize(&ApplyInput{}, nil)
apiSchemas.MustImportAndCustomize(&ApplyOutput{}, nil)
apiSchemas.MustImportAndCustomize(Cluster{}, func(schema *types.APISchema) {
schema.CollectionMethods = []string{http.MethodGet}
schema.ResourceMethods = []string{http.MethodGet}