Skip to content

refactor(api): simplify client lifetimes and update workflows - #2044

Merged
Sau1707 merged 1 commit into
mainfrom
refactor/api-cleanup-lifetimes
Dec 3, 2026
Merged

Sau1707 merged 1 commit into
mainfrom
refactor/api-cleanup-lifetimes

Conversation

@Sau1707

@Sau1707 Sau1707 commented Dec 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Remove the custom Kubernetes wrapper and pass kr8s.Api directly, preserving lifespan cleanup, operation tunnels, deadlines, and lease guards.
  • Use the production database factory and disposal path in tests.
  • Consolidate GET/POST post-inspection checks while preserving authorization and lock ordering. If an organization is deleted during metadata inspection, GET remains 403; private update POST changes from 403 to 409. No deployment changes.
  • Delete registries by tenant-scoped identity without decrypting credentials, allowing deletion when credential ciphertext is unreadable.
  • Use a scalar target-membership query for permissions.
  • Add regression coverage and prune copied chart defaults while retaining persistence, credentials, TLS, and network settings.
  • No migrations, dependency changes, API schema changes, or unrelated SDK/company changes.

Validation

  • Isolated worktree setup: uv sync --locked --extra dev with Python 3.14.6.
  • ruff check . and ty check passed.
  • Changed-file ruff format --check: 37 files passed.
  • pytest tests -q --tb=line --show-capture=no: 924 passed; two dependency deprecation warnings involving pytest's CallSpec alias and kr8s' asyncio.iscoroutinefunction.
  • git diff --check passed.

@Sau1707 Sau1707 added api Related to the control plane refactor Structural improvements without changing intended behavior labels Dec 3, 2026
@Sau1707
Sau1707 merged commit 67d94ec into main Dec 3, 2026
16 checks passed
@Sau1707
Sau1707 deleted the refactor/api-cleanup-lifetimes branch December 3, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Related to the control plane refactor Structural improvements without changing intended behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant