Skip to content

Add keyspace routing rule commands - #1320

Open
planetscale-ai-tools[bot] wants to merge 3 commits into
mainfrom
cursor/keyspace-routing-rules-ddd2
Open

Add keyspace routing rule commands#1320
planetscale-ai-tools[bot] wants to merge 3 commits into
mainfrom
cursor/keyspace-routing-rules-ddd2

Conversation

@planetscale-ai-tools

@planetscale-ai-tools planetscale-ai-tools Bot commented Aug 4, 2026

Copy link
Copy Markdown

Add hidden pscale branch vtctld commands for reading and replacing live keyspace routing rules.

The apply command accepts either inline JSON with --rules or a JSON file with --rules-file, including an empty {} document to clear all rules. It also supports --cells and --skip-rebuild.

Testing:

  • go test ./internal/cmd/branch/vtctld ./internal/planetscale
  • CI build, tests, lint, and dependency license checks passed

Drop -f/-r/-c short flags so cobra no longer panics merging with root
--format (-f). Matches sibling vtctld commands that use long flags only.
Comment thread internal/cmd/branch/vtctld/keyspace_routing_rules.go Outdated
@maxenglander
maxenglander marked this pull request as ready for review August 4, 2026 14:43
@maxenglander
maxenglander requested a review from a team as a code owner August 4, 2026 14:43
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.

3 participants