From 1ccee88c0bc5da630a8ff70318c0c85e46905687 Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Tue, 24 Jul 2018 10:58:45 -0700 Subject: [PATCH] No edit for resource quota template --- apis/management.cattle.io/v3/schema/schema.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apis/management.cattle.io/v3/schema/schema.go b/apis/management.cattle.io/v3/schema/schema.go index 28164835..d4138eb9 100644 --- a/apis/management.cattle.io/v3/schema/schema.go +++ b/apis/management.cattle.io/v3/schema/schema.go @@ -594,5 +594,7 @@ func composeType(schemas *types.Schemas) *types.Schemas { func resourceQuotaTemplateTypes(schemas *types.Schemas) *types.Schemas { return schemas. - MustImport(&Version, v3.ResourceQuotaTemplate{}) + MustImportAndCustomize(&Version, v3.ResourceQuotaTemplate{}, func(schema *types.Schema) { + schema.ResourceMethods = []string{http.MethodGet, http.MethodDelete} + }) }