From 1a5dd9f14f92c014cf80676f87dffc16e6d4e761 Mon Sep 17 00:00:00 2001 From: Janet Kuo Date: Wed, 17 Feb 2016 15:01:11 -0800 Subject: [PATCH] Use IntPtr --- pkg/kubectl/stop.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/kubectl/stop.go b/pkg/kubectl/stop.go index 828b43dcc52..85f67ef9a99 100644 --- a/pkg/kubectl/stop.go +++ b/pkg/kubectl/stop.go @@ -364,8 +364,7 @@ func (reaper *DeploymentReaper) Stop(namespace, name string, timeout time.Durati deployment, err := reaper.updateDeploymentWithRetries(namespace, name, func(d *extensions.Deployment) { // set deployment's history and scale to 0 // TODO replace with patch when available: https://github.com/kubernetes/kubernetes/issues/20527 - zero := 0 - d.Spec.RevisionHistoryLimit = &zero + d.Spec.RevisionHistoryLimit = util.IntPtr(0) d.Spec.Replicas = 0 // TODO: un-pausing should not be necessary, remove when this is fixed: // https://github.com/kubernetes/kubernetes/issues/20966