|
...
|
...
|
@@ -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
|
|