1
0
mirror of https://github.com/rancher/types.git synced 2025-09-18 07:52:41 +00:00

make cronJob concurrencyPolicy enum

This commit is contained in:
kinarashah
2018-03-02 15:51:44 -08:00
parent 49f300e585
commit e5b6a68db0

View File

@@ -316,7 +316,6 @@ func cronJobTypes(schemas *types.Schemas) *types.Schemas {
From: []string{
"schedule",
"startingDeadlineSeconds",
"concurrencyPolicy",
"suspend",
"successfulJobsHistoryLimit",
"failedJobsHistoryLimit",
@@ -324,6 +323,15 @@ func cronJobTypes(schemas *types.Schemas) *types.Schemas {
},
To: "cronJobConfig",
},
&m.Enum{Field: "concurrencyPolicy", Options: []string{
"Allow",
"Forbid",
"Replace",
}},
&m.Move{
From: "concurrencyPolicy",
To: "cronJobConfig/concurrencyPolicy",
},
&m.Move{
From: "jobMetadata/labels",
To: "cronJobConfig/jobLabels",