1
0
mirror of https://github.com/rancher/types.git synced 2025-06-24 12:41:33 +00:00

Changes to allow nil value for deployment field rollingUpdate

rename mapper field to emptyValueOk
This commit is contained in:
Prachi Damle 2018-06-07 12:13:58 -07:00 committed by Alena Prokharchyk
parent bca7fe2c26
commit a15097a11b

View File

@ -367,7 +367,7 @@ func cronJobTypes(schemas *types.Schemas) *types.Schemas {
func deploymentTypes(schemas *types.Schemas) *types.Schemas {
return schemas.
AddMapperForType(&Version, v1beta2.DeploymentStrategy{},
&m.Embed{Field: "rollingUpdate"},
&m.Embed{Field: "rollingUpdate", EmptyValueOk: true},
m.Enum{Field: "type", Options: []string{
"Recreate",
"RollingUpdate",