Repository navigation
Fix partialFailureMode validator to accept CRD enum values - #4865
Merged
Merged
Conversation
The camelCase config migration (PR #3195) accidentally changed the accepted enum value from "best_effort" to "bestEffort" in the validator, but the CRD still defines the enum as "best_effort". This made it impossible to enable best-effort partial failure mode — the CRD blocks "bestEffort" at admission and the validator blocks "best_effort" at runtime. Fixes #4856 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
jhrozek
requested review from
JAORMX,
amirejaz,
jerm-dro and
yrobla
as code owners
April 15, 2026 20:56
Contributor
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4865 +/- ##
==========================================
- Coverage 69.14% 69.13% -0.01%
==========================================
Files 530 531 +1
Lines 55278 55172 -106
==========================================
- Hits 38220 38142 -78
+ Misses 14132 14104 -28
Partials 2926 2926 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jerm-dro
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The camelCase config migration (PR #3195) accidentally changed the accepted
partialFailureModeenum value frombest_efforttobestEffortin the vMCP config validator, but the CRD still correctly defines the enum asbest_effort. This made it impossible to enable best-effort partial failure mode — the CRD blocksbestEffortat admission and the validator blocksbest_effortat runtime, so the pod crashes with a validation error on any attempt to use this feature.This fixes the validator to accept
best_effort, matching the CRD enum definition.Fixes #4856
Type of change
Test plan
TestValidator_ValidateFailureHandling— all 13 cases pass)task lint-fix— 0 issues)Generated with Claude Code