1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 12:48:45 +00:00

Merge pull request #303 from kinarashah/uproll

add actions to workload
This commit is contained in:
Alena Prokharchyk
2018-03-28 10:27:13 -07:00
committed by GitHub

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