Skip to content

Conversation

@hussein-awala
Copy link
Member

@hussein-awala hussein-awala commented Jan 20, 2023

closes: #29002


When get_logs=False, we should wait the base container completion before reading the xcom file, to do that we are checking if the container is running, but there is a possibility that the container is in waiting state, and in the current await_container_completion method, we consider it as completed.
Instead, I'm checking if the container has the state terminated and if not I wait 1s.

@boring-cyborg boring-cyborg bot added provider:cncf-kubernetes Kubernetes (k8s) provider related issues area:providers labels Jan 20, 2023
@potiuk
Copy link
Member

potiuk commented Jan 21, 2023

LGTM but I think I need also second opinion (@jedcunningham :) again )?

I also think having unit tests covering the cases that would have failed previously are needed here. I am always suspicious about changes introducing behavioural change where no tests are touched.

@potiuk potiuk requested a review from dstandish January 30, 2023 11:43
@eladkal eladkal requested a review from dimberman February 18, 2023 20:19
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@jedcunningham jedcunningham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but yes we should add test coverage.

@hussein-awala
Copy link
Member Author

@eladkal is it too late to add this fix to cncf.kubernetes release?

@eladkal
Copy link
Contributor

eladkal commented Mar 7, 2023

@eladkal is it too late to add this fix to cncf.kubernetes release?

It will be in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:cncf-kubernetes Kubernetes (k8s) provider related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KubernetesPodOperator xcom push failure

4 participants