Add sync_instances management command for control plane reconciliation #482
No reviewers
Labels
No labels
API
Billing
UI/UX
dependencies
bug
change
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
servala/servala-portal!482
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "instance-sync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Introduces a new management command that reconciles service instances between Kubernetes control planes and the portal database. Supports three checks: orphaned instances on K8s, missing instances on K8s, and annotation/spec drift. Also detects orphaned namespaces and namespace metadata drift.
Default mode is dry-run (report only). With --apply, prompts interactively for each discrepancy. Handles deletion protection removal when deleting instances, mirroring the existing decommission process.
Adds imported_at field to ServiceInstance to mark instances adopted from control planes rather than created through the portal.