<#6461 Treat kubelet NodeAffinity status.reason as...
# flyte-github
c
#6461 Treat kubelet NodeAffinity status.reason as retryable system error Pull request opened by mhotan ## Why are the changes needed? Identified a unique, fairly rare, edge case in certain cloud providers (e.g GKE) where the kubelet rejects the pod due to lacking NodeAffinity requirements prior the underlying controller manager applying the appropriate labels. We would see workflows failing with
Copy code
[...]: [...] currentAttempt done. Last Error: USER::Pod was rejected: Predicate NodeAffinity failed: node(s) didn't match Pod's node affinity/selector
## What changes were proposed in this pull request? Treat Pod failures with
status.reason
of
NodeAffinity
as a retryable system error. ## How was this patch tested? Unit tests. This is important to improve the readability of release notes. ### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link ### Summary by Bito This pull request enhances the handling of pod failures in cloud environments by treating 'NodeAffinity' status as a retryable error, improving workflow reliability. It also includes new unit tests to verify this behavior. Unit tests added: True Estimated effort to review (1-5, lower is better): 2 flyteorg/flyte