deletePod handler in the deployment controller shouldn't set owner refs

This commit is contained in:
Bo Ingram
2017-06-04 20:04:13 -06:00
parent 3837d95191
commit 5a99edaeb0
3 changed files with 81 additions and 11 deletions

View File

@@ -356,7 +356,7 @@ func (dc *DeploymentController) deletePod(obj interface{}) {
glog.V(4).Infof("Pod %s deleted.", pod.Name)
if d := dc.getDeploymentForPod(pod); d != nil && d.Spec.Strategy.Type == extensions.RecreateDeploymentStrategyType {
// Sync if this Deployment now has no more Pods.
rsList, err := dc.getReplicaSetsForDeployment(d)
rsList, err := util.ListReplicaSets(d, util.RsListFromClient(dc.client))
if err != nil {
return
}