-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
deployment controller: cancel deployers on new cancelled deployments #8418
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ func LabelForDeployment(deployment *api.ReplicationController) string { | |
|
||
// LabelForDeploymentConfig builds a string identifier for a DeploymentConfig. | ||
func LabelForDeploymentConfig(config *deployapi.DeploymentConfig) string { | ||
return fmt.Sprintf("%s/%s:%d", config.Namespace, config.Name, config.Status.LatestVersion) | ||
return fmt.Sprintf("%s/%s", config.Namespace, config.Name) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was this change intentional? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this is confusing since we already name deployments after their version. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this going to cause backwards compatibility issues? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? AFAIK we use it only for logging There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup, my grep-fuu failed me. |
||
} | ||
|
||
// DeploymentNameForConfigVersion returns the name of the version-th 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.
Maybe a larger question - when we cancel, why don't we update the RC and then delete the deployer pods? Is that going to race with the deployment process pod controller? Or are you just trying to ensure it happens before and after?
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.
Interesting q... I do think that's a larger investigation. Pretty sure this patch will do what we want for now.
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.
Spawned #8439