-
Notifications
You must be signed in to change notification settings - Fork 771
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
fix pod hang in PreparingUpdate state when rollback before update hook #1157
fix pod hang in PreparingUpdate state when rollback before update hook #1157
Conversation
2d48d31
to
d0081e6
Compare
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.
/lgtm
d0081e6
to
bf0a64c
Compare
/ok-to-test |
bf0a64c
to
858b71d
Compare
/lgtm |
@@ -173,6 +173,13 @@ func (c *realControl) refreshPodState(cs *appsv1alpha1.CloneSet, coreControl clo | |||
cs.Spec.Lifecycle.PreNormal == nil || | |||
lifecycle.IsPodAllHooked(cs.Spec.Lifecycle.PreNormal, pod) { | |||
state = appspub.LifecycleStateNormal | |||
case appspub.LifecycleStatePreparingUpdate: | |||
if clonesetutils.EqualToRevisionHash("", pod, updateRevision) { |
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.
plz add some annotations to explain these codes.
Signed-off-by: shiyan2016 <shiyan20160606@gmail.com>
858b71d
to
d765df7
Compare
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zmberg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Ⅰ. Describe what this PR does
fix pod hang in PreparingUpdate state when rollback before update hook
Ⅱ. Does this pull request fix one issue?
fixes #1156
Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews