Repository navigation
fix(operator): follow-ups of the #109 review (handover peers, claim window, docs) - #110
Merged
Merged
Conversation
…indow, docs) - A FeatureFlag whose token Secret is refused no longer counts as a peer that will take a flag over, so deleting the manager deletes the flag instead of leaving it in Checkgate for good. - Lost-reply recovery relies on the request's creation time alone; the extra "recent record" condition made the operator forget its own request after ~3 minutes of downtime (CrashLoopBackOff), and createdNear already bounds what can be claimed. - Tests: refused peer at handover, deleting/conflict-losing refused FeatureFlags call nothing, claim after downtime, no claim of an older or unreadable-created_at request, ambiguous match with unknown requester. - Docs: same-namespace residual (FeatureFlag create ~ Secret read in that namespace), move cross-namespace Secrets before deleting such objects, README section order and indentation, CRD field doc (CRD regenerated).
5 tasks
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.
Follow-ups from an independent review of #109 (
2b0080b..55ab968). The review found that all three of #109's claims hold in every code path and nothing blocks the release. This PR addresses its remaining points.recentcondition made the operator forget its own lost request after about 3 minutes of downtimecreatedNearalone bounds what can be claimed, whatever the downtime.tokenSecretRef.namespacenow mentions the refusal (CRD regenerated with controller-gen v0.16.5).Evidence
Run on
55ab968first:TestHandoverIgnoresPeersThatCannotTakeOver: the flag was kept alive by a refused peer.TestProposalRecordSurvivesOperatorDowntime: the operator's own request was not recognised after 10 minutes of downtime.created_atis not claimed; an ambiguous match with an unknown requester is not claimed and not withdrawn.After the fix: all 11 targeted tests pass, the full suite passes under
-race -count=3, envtest ×3 passes (CRD upgrade from 0.2.0, lifecycle, conflicts), real-serverrun-real-server.shpasses, and the VitePress build pluscheck-docs-site.pyis ok.