-
Notifications
You must be signed in to change notification settings - Fork 293
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
Update workload AdmissionChecks status on AdmissionRequest creation error. #4114
Update workload AdmissionChecks status on AdmissionRequest creation error. #4114
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
/cc @mimowo |
Other than my comment above, LGTM |
The rationale behind this PR is that we haven't been actually patching the changes we make if ProvReq's creations fails: |
as I synced with @mbobrovskyi this is likely a bug which made #3056 not working. I believe we should think of better testing. Maybe an integration or e2e with a custom webhook? EDIT: I'm ok with just manual testing for this PR if this unblocks #4086 (as I was told), but please open an issue for an automated testing at the integration level. EDIT2: not sure how complex it is to deploy in Kueue a webhook during integration tests (might be simpler or harder depending on the testing frameworks). FWIIW we do it in core k8s at the integration and e2e level (example integration, example e2e), but I agree it would be overkill for this PR. |
9501795
to
a2d05b0
Compare
proposal, is it accurate?
|
I manually tested it, and it works fine. I added CEL validation for
Created an issue #4115 for follow-ups. |
/lgtm |
LGTM label has been added. Git tree hash: 2c328aeb3b039c3aff6bf5e4f078f14de8e67822
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mbobrovskyi, mimowo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cherry-pick release-0.10 release-0.9 |
@mimowo: once the present PR merges, I will cherry-pick it on top of In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@mimowo: #4114 failed to apply on top of branch "release-0.10":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@mbobrovskyi please prepare cherry-picks manually |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Update workload AdmissionChecks status on AdmissionRequest creation error.
Which issue(s) this PR fixes:
Fixes #3025
Special notes for your reviewer:
Does this PR introduce a user-facing change?