From 9d2b59dedc0c2e47231d301a51669abf9752d998 Mon Sep 17 00:00:00 2001 From: Prachi Damle Date: Wed, 21 Aug 2019 14:37:29 -0700 Subject: [PATCH] add enable disable clustertemplaterevision actions --- apis/management.cattle.io/v3/schema/schema.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apis/management.cattle.io/v3/schema/schema.go b/apis/management.cattle.io/v3/schema/schema.go index 0a220eb6..2454ee04 100644 --- a/apis/management.cattle.io/v3/schema/schema.go +++ b/apis/management.cattle.io/v3/schema/schema.go @@ -869,12 +869,17 @@ func clusterTemplateTypes(schemas *types.Schemas) *types.Schemas { MustImport(&Version, v3.ClusterTemplateQuestionsOutput{}). MustImport(&Version, v3.ClusterTemplate{}). MustImportAndCustomize(&Version, v3.ClusterTemplateRevision{}, func(schema *types.Schema) { + schema.ResourceActions = map[string]types.Action{ + "disable": {}, + "enable": {}, + } schema.CollectionActions = map[string]types.Action{ "listquestions": { Output: "clusterTemplateQuestionsOutput", }, } }) + } func clusterScanTypes(schemas *types.Schemas) *types.Schemas {