Browse code

Print name of existing pods with deployer-pod names

Paul Morie authored on 2015/05/31 01:33:10
Showing 1 changed files
... ...
@@ -98,8 +98,8 @@ func (c *DeploymentController) Handle(deployment *kapi.ReplicationController) er
98 98
 		if deployutil.DeploymentNameFor(existingPod) != deployment.Name {
99 99
 			nextStatus = deployapi.DeploymentStatusFailed
100 100
 			deployment.Annotations[deployapi.DeploymentStatusReasonAnnotation] = deployapi.DeploymentFailedUnrelatedDeploymentExists
101
-			c.recorder.Eventf(deployment, "failedCreate", "Error creating deployer pod for %s since another pod with the same name exists", deployutil.LabelForDeployment(deployment))
102
-			glog.V(2).Infof("Couldn't create deployer pod for %s since an unrelated pod with the same name exists", deployutil.LabelForDeployment(deployment))
101
+			c.recorder.Eventf(deployment, "failedCreate", "Error creating deployer pod for %s since another pod with the same name (%q) exists", deployutil.LabelForDeployment(deployment), existingPod.Name)
102
+			glog.V(2).Infof("Couldn't create deployer pod for %s since an unrelated pod with the same name (%q) exists", deployutil.LabelForDeployment(deployment), existingPod.Name)
103 103
 			break
104 104
 		}
105 105