Job validation bug occurs in JobSet but not standalone Job: podFailurePolicy's "onPodConditions" field not treated as optional #377
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
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: