Skip to content

Conversation

@AutomationDev85
Copy link
Contributor

Overview

This PR extends the improvements of this PR: #49784

The idea is to detect failures like ErrImagePull or InvalidImageName fast to give fast feedback to the user. Without this the await_pod_start would wait until we run into the timeout. Failures like this can be detected fast and result in an failed Pod startup. E.g. 1) User gets fast feedback if they added the wrong image name. 2) User gets fast feedback if image is not available.
What is your opinion about this idea?

Details of change:

  • await_pod_start detects if error like this occurred: ErrImagePull, InvalidImageName
  • Fast fail if this errors are detected.

@boring-cyborg boring-cyborg bot added area:providers provider:cncf-kubernetes Kubernetes (k8s) provider related issues labels Apr 28, 2025
@AutomationDev85 AutomationDev85 changed the title [KubernetesPodOperator] Add fail fast detection during Pod startup [KubernetesPodOperator] Add fail fast detection during pod startup Apr 28, 2025
Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

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

For me this looks good. But a second pair of eyes for approval from the experts would be good prior merge

@AutomationDev85 AutomationDev85 force-pushed the feature/fast-fail-image-error-kubernetes-pod-operator branch from 8799915 to e716be5 Compare May 12, 2025 08:05
@AutomationDev85 AutomationDev85 force-pushed the feature/fast-fail-image-error-kubernetes-pod-operator branch from e716be5 to 0ae80cf Compare May 12, 2025 12:07
Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

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

Re-review - looks good to me.

@jscheffl jscheffl merged commit 264242f into apache:main May 12, 2025
76 checks passed
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
…Operator (apache#49867)

Co-authored-by: AutomationDev85 <AutomationDev85>
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.

3 participants