From a15097a11b1e487d40f3ae7d0f0462b1faa90c71 Mon Sep 17 00:00:00 2001 From: Prachi Damle Date: Thu, 7 Jun 2018 12:13:58 -0700 Subject: [PATCH] Changes to allow nil value for deployment field rollingUpdate rename mapper field to emptyValueOk --- apis/project.cattle.io/v3/schema/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/project.cattle.io/v3/schema/schema.go b/apis/project.cattle.io/v3/schema/schema.go index fb9e2d4c..c653e4b3 100644 --- a/apis/project.cattle.io/v3/schema/schema.go +++ b/apis/project.cattle.io/v3/schema/schema.go @@ -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",