From c1ea7b962624a3fe3758fbfccd7000e6bf68359d Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Mon, 1 Mar 2021 22:39:52 -0700 Subject: [PATCH] Register apply structs --- pkg/resources/cluster/cluster.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/resources/cluster/cluster.go b/pkg/resources/cluster/cluster.go index 70a5a96..bf62240 100644 --- a/pkg/resources/cluster/cluster.go +++ b/pkg/resources/cluster/cluster.go @@ -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}