Repository navigation
♻️ refactor(controller): remaining workload reconcilers native v1beta1 (8e-4to7) - #174
Merged
Merged
Conversation
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.



8e-4to7 — remaining four workload reconcilers native v1beta1
Applies the exact 8e-3 Queue template to the last four workload reconcilers. Each kind now Gets its object, adds/removes its finalizer, maps its
toMQ*Spec, writes status/events, and wiresSetupWithManager For(...)onmessagingv1beta1. The shared type-switch files (adoption_policy.go,lifecycle_policy.go,suspend.go) gain acase *messagingv1beta1.<Kind>:beside the retainedcase *messagingv1alpha1.<Kind>:(kept compiling until 8e-8 deletes the v1alpha1 types). No v1alpha1 types or the conversion webhook are removed (that is 8e-8).Per kind (one commit each)
Get/finalizer/ensureTopic/toMQTopicSpec/SetupWithManager→ v1beta1; attribute-fold precedence (ADR-0021) unchanged.Grep-gate
grep -rn messagingv1alpha1 internal/controller/*_controller.go→ 0 matches (no v1alpha1 reconcile import in any*_controller.go). Shared type-switch files still reference v1alpha1 cases by design (removed with the types in 8e-8).Test re-pointing (mirrors the Queue template)
Per-kind reconciled objects, finalizers, kind enums,
LocalObjectReference,DeletionPolicy/ForceOrphanflipped to v1beta1. QMC creation and shared status constants (ConditionSynced,ReasonAvailable, …) kept on v1alpha1 exactly asqueue_reconciler_test.godoes (value-identical / envtest conversion). Shared-helper tests (adoption_policy_test,suspend_test,status_helpers_test,mqobject_iface_test,reconcile_shared_test,fixtures_test) intentionally stay on v1alpha1 — they exercise the retained v1alpha1 switch path.Files touched beyond the stated Touches (compile-driven necessity):
reconcile_error_branches_test.goanddrift_policy_test.go— both call kind-specific helpers/sample*that flipped to v1beta1, so their Topic/Channel portions were re-pointed. No validation files needed changes (validation does not import the reconcilers).Gate results
task verify— ok (codegen clean, no CRD change)task lint— 0 issues + go-arch-lint OK (aftergolangci-lint cache clean; the initial run replayed stale sibling-worktree cache entries — known MKurator quirk)task test:run— all green; internal/ coverage 92.3% (floor 90%), api/ coverage 76.6% (floor 75%). Envtest reconciler specs (create/adopt/drift/suspend/delete per kind) ran here, plustest/admissionandtest/conversionwebhookgreen.task scrub/task scrub:tree— ok (596 tracked files clean)task format:check— ok (gofmt+goimports+golines)go build ./...,go vet -tags e2e ./...,go vet -tags integration ./...— all cleane2e (kustomize)on this PR.Boundary respected: no
api/v1alpha1type or conversion-webhook deletion.