-
Notifications
You must be signed in to change notification settings - Fork 55
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
Job validation bug occurs in JobSet but not standalone Job: podFailurePolicy's "onPodConditions" field not treated as optional #377
Comments
/kind bug |
I don't this is correct.
The go.mod/go.sum seems to point to 0.28.4 rather than this one. |
You're right, I was looking at #301 when writing this. I'll update the description accordingly. |
@mimowo we still see that this is a problem. It looks fixed when using normal jobs but it still seems present for JobSet |
Bump, this is being addressed by bumping to the fixed k8s API in kubernetes/kubernetes#126046 (1.29.8 and 1.30.4 will include the fix). |
This has now been fixed since we bumped our k8s dependencies to v.1.31 Confirmed fix works in #600 which was previously blocked by this bug. |
Thank you for checking and the feedback! |
A while ago we fixed this bug causing validation failure when the podFailurePolicy
onPodConditions
field is unset, even though it is an optional field: kubernetes/kubernetes#120204. This change was cherry picked into 1.27 and my understanding is that using 1.27.7+ should allow me to use this change.Despite using 1.27.9 for my GKE cluster master version, and v0.28.5 for k8s Go packages in JobSet, I get the following error when onPodConditions is unset:
Here is the JobSet yaml:
However, before the change, even if I set
onPodConditions: []
, validation still failed. Now if I setonPodConditions: []
the validation passes and things work as expected.To investigate this further, I tried creating a standalone Job with the same podFailurePolicy, which worked:
This leads me to believe the issue is specific to JobSet / the versions of the k8s Go packages we are using, so I am opening this bug.
/kind bug
The text was updated successfully, but these errors were encountered: