Skip to content

🔥 feat(api)!: delete messaging.mkurator.dev/v1alpha1 Go types + conversion webhook (8e-8b) - #176

Merged
konih merged 7 commits into
mainfrom
worktree-agent-a770e59a9b9af3579
Jul 30, 2026
Merged

🔥 feat(api)!: delete messaging.mkurator.dev/v1alpha1 Go types + conversion webhook (8e-8b)#176
konih merged 7 commits into
mainfrom
worktree-agent-a770e59a9b9af3579

Conversation

@konih

@konih konih commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

8e-8b — delete the v1alpha1 Go code entirely

Follows 8e-8a (v1alpha1 no longer served). This lane removes the v1alpha1 Go API version outright.

Deleted

Repointed / pruned (tree compiles + passes on v1beta1 only)

  • Shared type-switches (adoption_policy.go, lifecycle_policy.go, suspend.go): removed every dead case *messagingv1alpha1.<Kind>:; kept the v1beta1 cases. workloadLifecyclePolicies now returns the inline-embedded messagingv1beta1.WorkloadLifecyclePolicies directly (dropped redundant string casts — unconvert).
  • Value-identical constants repointed to messagingv1beta1.* across reconcile_shared.go, adoption_policy.go, lifecycle_policy.go, drift_policy.go, events.go, suspend.go.
  • internal/validation/: all validators flipped to v1beta1 types. ValidateConnectionRef collapsed a v1beta1-first/v1alpha1-fallback double-Get into a single Get. listConnectionDependents dropped the now-dead cross-version double-List + dedup (a single-version List can't return duplicates); one List per kind.
  • Fake-client unit suites (~9 controller + validation *_test.go) flipped to v1beta1 fixtures. Cross-version dedup tests whose entire premise was v1alpha1+v1beta1 serving one stored object were removed (live delete-blocked behavior still covered by TestValidateQueueManagerConnectionDeleteWithV1Beta1Dependents); a single-version multi-kind order test replaces them. The AUTH-14 auth-preservation guard in queuemanagerconnection_native_v1beta1_test.go is kept; only the now-vacuous "no v1alpha1 write" recorder was dropped.
  • cmd/main.go + stale doc comments scrubbed.

API coverage (roast P1)

Deleting the fuzz-heavy api/v1alpha1 shifted the ./api/... denominator to v1beta1 only, dropping it to 72.4% — below the 75% HARD floor. Added api/v1beta1/deepcopy_nested_test.go (value-receiver DeepCopy() on every standalone type + a fully-populated QMC DeepCopyObject round trip exercising the nested-pointer branches). api coverage 72.4% -> 92.5%. Floor not lowered.

Gates

  • task verify (codegen-clean): ok — no CRD change (single-version since 8e-8a)
  • task lint + arch:lint: 0 issues (initial red was the known golangci stale-cache flake + a sibling-worktree leak; clean after cache clean)
  • task test:run: internal 92.6% (floor 90), api 92.5% (floor 75)
  • task scrub / scrub:tree: ok (542 files clean)
  • task format:check: ok
  • go build ./..., go vet ./..., go vet -tags e2e ./..., go vet -tags integration ./...: clean
  • grep-gate: grep -rn "v1alpha1" internal/ api/ cmd/ = 0
  • e2e: skipped (no kind cluster in harness); CI runs e2e (kustomize) + helm-e2e.

Draft — do not self-merge; awaiting independent review + CI.

@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.64286% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/controller/channel_controller.go 0.00% 1 Missing ⚠️
internal/controller/lifecycle_policy.go 85.71% 1 Missing ⚠️
...ernal/validation/queuemanagerconnection_v1beta1.go 75.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

…deepcopy; tidy stale config comments (8e-8b)
@konih
konih marked this pull request as ready for review July 30, 2026 19:53
The fuzz job matrix ran FuzzQueue/Topic/Channel/ChannelAuthRule/AuthorityRecord/
QueueManagerConnection ConversionRoundTrip against ./api/v1alpha1/ — both the fuzz
targets and that directory were deleted with v1alpha1 in this lane. No fuzz tests
remain (all were conversion round-trips), so the job is removed entirely.
@sonarqubecloud

Copy link
Copy Markdown

@konih
konih merged commit 1fc6fc9 into main Jul 30, 2026
20 checks passed
@konih
konih deleted the worktree-agent-a770e59a9b9af3579 branch July 30, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant