1
0
mirror of https://github.com/rancher/types.git synced 2025-09-12 21:13:18 +00:00

add actions to workload

This commit is contained in:
kinarashah
2018-03-21 10:23:38 -07:00
parent bf23b967a5
commit 9c1d3f1047

View File

@@ -112,6 +112,12 @@ func workloadTypes(schemas *types.Schemas) *types.Schemas {
schema.ResourceFields[name] = field
}
}
schema.ResourceActions = map[string]types.Action{
"rollback": {
Input: "revision",
},
"pause": {},
}
schema.MustCustomizeField("name", func(field types.Field) types.Field {
field.Type = "dnsLabel"
field.Nullable = false