1
0
mirror of https://github.com/rancher/types.git synced 2025-07-31 04:49:37 +00:00

add enable disable clustertemplaterevision actions

This commit is contained in:
Prachi Damle 2019-08-21 14:37:29 -07:00 committed by Alena Prokharchyk
parent 782023395d
commit 9d2b59dedc

View File

@ -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 {