diff --git a/VERSION b/VERSION index 965065db5..a602fc9e2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.9.3 +0.9.4 diff --git a/pkg/serving/update.go b/pkg/serving/update.go index c3680f0de..478312e5e 100644 --- a/pkg/serving/update.go +++ b/pkg/serving/update.go @@ -287,6 +287,10 @@ func findAndBuildDeployment(args *types.CommonUpdateServingArgs) (*appsv1.Deploy } resourceLimits := deploy.Spec.Template.Spec.Containers[0].Resources.Limits + if resourceLimits == nil { + resourceLimits = make(map[v1.ResourceName]resource.Quantity) + } + if args.GPUCount > 0 { resourceLimits[ResourceGPU] = resource.MustParse(strconv.Itoa(args.GPUCount)) if _, ok := resourceLimits[ResourceGPUMemory]; ok {