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
Bug 2002420: making sure stage labels are added to running pods only #1198
Conversation
|
Valid bug 2002420 |
|
This fixed the test case mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=2002420 for me. ACK |
|
@JaydipGabani if you have IBM ROKS clusters around, would be good to test the same TC on your end in case there is different PVC behavior there. Thinking about the scenario where a |
pkg/controller/migmigration/stage.go
Outdated
| if pod.Status.Phase != corev1.PodRunning { | ||
| continue | ||
| } | ||
| if pod.DeletionTimestamp == nil { |
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.
Isn't this the opposite of what we want? If it's deleted, we skip it. If it's not deleted, we annotate 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.
Ohh! Good catch!!
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.
Good catch Scott.
|
Re-tested after recent change set, still works 👍 |
…igtools#1198) * making sure stage labels are added to stage pods only * making sure stage labels are added to running pods only (cherry picked from commit 63f8c54)
Skip adding stage labels to pods that are not in running state