-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Emit event when cancelling a deployment #10590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@Kargakis ptal |
@@ -185,6 +185,7 @@ func (c *DeploymentController) Handle(deployment *kapi.ReplicationController) er | |||
if err := c.cleanupDeployerPods(deployment); err != nil { | |||
return err | |||
} | |||
c.emitDeploymentEvent(deployment, kapi.EventTypeNormal, "DeploymentCancelled", fmt.Sprintf("deployment %q cancelled", deployutil.LabelForDeployment(deployment))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Deployment... "
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ruby-ex-8: Deployment "test/ruby-ex-8" cancelled
seems weird :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(but I don't care enough to keep it, so I will fix it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I thought "deployment" was the first word in the event. :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nvmd, ok for now
One comment, lgtm otherwise |
[merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/8390/) (Image: devenv-rhel7_4918) |
Evaluated for origin merge up to c374c50 |
A simple addition that allow to see the cancelled deployments in events (oc describe/console):