Skip to content

Commit

Permalink
Merge pull request kubernetes#21435 from janetkuo/use-intptr
Browse files Browse the repository at this point in the history
Use IntPtr
  • Loading branch information
bgrant0607 committed Feb 24, 2016
2 parents af93275 + 1a5dd9f commit b5c6341
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/kubectl/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,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
Expand Down

0 comments on commit b5c6341

Please sign in to comment.