mirror of
https://github.com/rancher/types.git
synced 2025-09-18 07:52:41 +00:00
Added output to the saveAsTemplate action
This commit is contained in:
committed by
Alena Prokharchyk
parent
de3dc217d6
commit
5fec081bd9
@@ -295,3 +295,8 @@ type SaveAsTemplateInput struct {
|
||||
ClusterTemplateName string `json:"clusterTemplateName,omitempty"`
|
||||
ClusterTemplateRevisionName string `json:"clusterTemplateRevisionName,omitempty"`
|
||||
}
|
||||
|
||||
type SaveAsTemplateOutput struct {
|
||||
ClusterTemplateName string `json:"clusterTemplateName,omitempty"`
|
||||
ClusterTemplateRevisionName string `json:"clusterTemplateRevisionName,omitempty"`
|
||||
}
|
||||
|
@@ -220,6 +220,7 @@ func clusterTypes(schemas *types.Schemas) *types.Schemas {
|
||||
MustImport(&Version, v3.MonitoringOutput{}).
|
||||
MustImport(&Version, v3.RestoreFromEtcdBackupInput{}).
|
||||
MustImport(&Version, v3.SaveAsTemplateInput{}).
|
||||
MustImport(&Version, v3.SaveAsTemplateOutput{}).
|
||||
MustImportAndCustomize(&Version, v3.ETCDService{}, func(schema *types.Schema) {
|
||||
schema.MustCustomizeField("extraArgs", func(field types.Field) types.Field {
|
||||
field.Default = map[string]interface{}{
|
||||
@@ -265,7 +266,8 @@ func clusterTypes(schemas *types.Schemas) *types.Schemas {
|
||||
}
|
||||
schema.ResourceActions[v3.ClusterActionRunCISScan] = types.Action{}
|
||||
schema.ResourceActions[v3.ClusterActionSaveAsTemplate] = types.Action{
|
||||
Input: "saveAsTemplateInput",
|
||||
Input: "saveAsTemplateInput",
|
||||
Output: "saveAsTemplateOutput",
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user