-
Notifications
You must be signed in to change notification settings - Fork 262
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
Add option to disable strict pod spec validation #3540
Comments
I believe this is not about Kueue validation but the underlying bug in SSA which prevents updates when fields are duplicated. For reference: kubernetes/kubernetes#113482. Given the bug for SSA exists for 2 years now I think it is unlikely this will be resolved soon, so I would suggest to consider withdrawing from SSA in Kueue. This is what we did for PodFailurePolicy in the core k8s: kubernetes/kubernetes#121103. I guess we could maintain two modes in Kueue behind a feature gate like |
The problem occurs when creating the workload, but not when patching it. kueue/pkg/controller/jobframework/reconciler.go Lines 1050 to 1052 in 30da293
|
@mbobrovskyi can you check which layer rejects the creation? Is this validation in Kueue? If validation if Kueue I suppose it might have been added to prevent later failures due to SSA for patches. |
No, it looks like k8s validation. |
Interesting, the error message in the description is from |
I tried with creation. But I believe we have the same issue with update.
|
What would you like to be added:
We would need to influence strictness level of Pod spec validation.
Why is this needed:
It turned out Kueue validates Pod spec differently compared to plain K8s.
In our case workloads have been blocked due to env vars being duplicated in Pod spec.
Because there are many components involved regarding pod spec creation and manipulation
we cannot guarantee env var keys to be unique.
Plain K8s wouldn't complain about duplicated env vars. This is why we think it would be helpful
to offer more control on Kueue's validation mechanism.
This could also be relevant to resource types other than Pods.
Log of kueue controller
v0.8.1
:Completion requirements:
This enhancement requires the following artifacts:
The artifacts should be linked in subsequent comments.
Lucas Zanella [email protected], Mercedes-Benz Tech Innovation GmbH, imprint
The text was updated successfully, but these errors were encountered: