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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user