-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: Daemon step updated 'pod delete' while pod is running #8399
Conversation
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
@@ -18,7 +18,7 @@ func (woc *wfOperationCtx) queuePodsForCleanup() { | |||
for _, obj := range objs { | |||
pod := obj.(*apiv1.Pod) | |||
nodeID := woc.nodeID(pod) | |||
if !woc.execWf.Status.Nodes[nodeID].Fulfilled() { | |||
if !woc.execWf.Status.Nodes[nodeID].Phase.Fulfilled() { |
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.
not just Completed()?
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.
Fulfilled will take care skipped and Omitted nodes also. Fulfilled is right one
// Fulfilled returns whether a phase is fulfilled, i.e. it completed execution or was skipped or omitted
func (phase NodePhase) Fulfilled() bool {
return phase.Completed() || phase == NodeSkipped || phase == NodeOmitted
}
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.
strange they are inconsistent
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
@alexec can you review this PR? once it is approved and merged I will start v3.3.2 |
* fix: Updating complated node status Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com> * fix: Daemon step updated 'pod delete' while pod is running Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com> * fix: update Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com> * fix: e2e Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
Fixes #TODO