Skip to content

[CDTOOL-1744] CLI support for routing configs - #1931

Merged
anthony-gomez-fastly merged 12 commits into
mainfrom
CDTOOL-1744-routing-configs
Oct 9, 2026
Merged

anthony-gomez-fastly merged 12 commits into
mainfrom
CDTOOL-1744-routing-configs

Conversation

@anthony-gomez-fastly

@anthony-gomez-fastly anthony-gomez-fastly commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Change summary

Adds the fastly routing-config command family (create/describe/list/ delete/activate/deactivate, plus nested draft, version, path, and path rule subcommands) backed by the go-fastly domain-management routing-configs client. Also adds --routing-config-id to fastly domain update to manage the domain-to-routing-config linkage, and documents all new commands

API Spec

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?

@anthony-gomez-fastly
anthony-gomez-fastly force-pushed the CDTOOL-1744-routing-configs branch 3 times, most recently from 56211f1 to 6aed881 Compare October 7, 2026 17:48
Adds the `fastly routing-config` command family (create/describe/list/
delete/activate/deactivate, plus nested draft, version, path, and
path rule subcommands) backed by the go-fastly domain-management
routing-configs client. Also adds `--routing-config-id` /
`--unset-routing-config-id` to `fastly domain update` to manage the
domain-to-routing-config linkage, and documents all new commands
Comment thread pkg/app/metadata.json
Comment thread pkg/app/metadata.json
@anthony-gomez-fastly
anthony-gomez-fastly force-pushed the CDTOOL-1744-routing-configs branch from 6aed881 to 3db04e3 Compare October 7, 2026 19:23
@anthony-gomez-fastly
anthony-gomez-fastly marked this pull request as ready for review October 7, 2026 19:24
@anthony-gomez-fastly
anthony-gomez-fastly requested a review from a team as a code owner October 7, 2026 19:24
@anthony-gomez-fastly
anthony-gomez-fastly requested review from jedisct1 and kpfleming and a balanced review from Copilot October 7, 2026 19:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

5 open findings
What changed in this PR

Adds CLI support for Fastly Domain Management routing configs, including routing-config CRUD/subcommands and domain↔routing-config association management.

Changes:

  • Introduces fastly routing-config command family with nested draft, version, path, and path rule subcommands.
  • Extends fastly domain update with --routing-config-id support and documents new behavior in metadata.
  • Registers new commands in the CLI command registry and updates changelog/app metadata.
File Description
pkg/​commands/​routingconfig/​root.go Adds routing-config command root.
pkg/​commands/​routingconfig/​doc.go Package docs for routing-config commands.
pkg/​commands/​routingconfig/​create.go Implements routing-config create.
pkg/​commands/​routingconfig/​describe.go Implements routing-config describe/get.
pkg/​commands/​routingconfig/​list.go Implements routing-config list with filtering/sorting.
pkg/​commands/​routingconfig/​delete.go Implements routing-config delete/remove (with --force).
pkg/​commands/​routingconfig/​activate.go Implements routing-config activate (activate draft).
pkg/​commands/​routingconfig/​deactivate.go Implements routing-config deactivate.
pkg/​commands/​routingconfig/​common.go Adds summary/verbose output helpers for routing configs.
pkg/​commands/​routingconfig/​draft/​root.go Adds routing-config draft subcommand root.
pkg/​commands/​routingconfig/​draft/​doc.go Package docs for draft subcommands.
pkg/​commands/​routingconfig/​draft/​diff.go Implements routing-config draft diff.
pkg/​commands/​routingconfig/​draft/​update.go Implements routing-config draft update (comment).
pkg/​commands/​routingconfig/​draft/​delete.go Implements routing-config draft delete/discard.
pkg/​commands/​routingconfig/​version/​root.go Adds routing-config version subcommand root.
pkg/​commands/​routingconfig/​version/​doc.go Package docs for version subcommands.
pkg/​commands/​routingconfig/​version/​list.go Implements routing-config version list.
pkg/​commands/​routingconfig/​version/​activate.go Implements routing-config version activate (reactivate).
pkg/​commands/​routingconfig/​version/​deleteinactive.go Implements routing-config version delete-inactive.
pkg/​commands/​routingconfig/​path/​root.go Adds routing-config path subcommand root.
pkg/​commands/​routingconfig/​path/​doc.go Package docs for path subcommands.
pkg/​commands/​routingconfig/​path/​create.go Implements routing-config path create.
pkg/​commands/​routingconfig/​path/​describe.go Implements routing-config path describe/get.
pkg/​commands/​routingconfig/​path/​list.go Implements routing-config path list with filtering/sorting.
pkg/​commands/​routingconfig/​path/​update.go Implements routing-config path update.
pkg/​commands/​routingconfig/​path/​delete.go Implements routing-config path delete/remove.
pkg/​commands/​routingconfig/​path/​common.go Adds summary/verbose output helpers for paths.
pkg/​commands/​routingconfig/​path/​rule/​root.go Adds routing-config path rule subcommand root.
pkg/​commands/​routingconfig/​path/​rule/​doc.go Package docs for rule subcommands.
pkg/​commands/​routingconfig/​path/​rule/​create.go Implements routing-config path rule create/add (JSON file input).
pkg/​commands/​routingconfig/​path/​rule/​describe.go Implements routing-config path rule describe/get.
pkg/​commands/​routingconfig/​path/​rule/​list.go Implements routing-config path rule list.
pkg/​commands/​routingconfig/​path/​rule/​update.go Implements routing-config path rule update (JSON file input).
pkg/​commands/​routingconfig/​path/​rule/​delete.go Implements routing-config path rule delete/remove.
pkg/​commands/​routingconfig/​path/​rule/​common.go Adds summary/verbose output helpers for rules.
pkg/​commands/​domain/​update.go Adds --routing-config-id support to domain update and prints association in success output.
pkg/​commands/​domain/​domain_test.go Adds test cases covering new domain update routing-config behavior.
pkg/​commands/​commands.go Registers routing-config command tree in CLI.
pkg/​app/​run_test.go Updates top-level command list test to include routing-config.
pkg/​app/​metadata.json Documents new routing-config command examples and new domain update examples.
CHANGELOG.md Adds changelog entry for routing-config CLI support.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pkg/commands/commands.go
Comment thread pkg/commands/domain/update.go
Comment thread pkg/commands/domain/update.go Outdated
Comment thread pkg/commands/routingconfig/common.go Outdated
Comment thread pkg/commands/routingconfig/path/common.go Outdated
@anthony-gomez-fastly
anthony-gomez-fastly requested a balanced review from Copilot October 7, 2026 20:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread pkg/commands/domain/update.go Outdated
Comment thread pkg/commands/domain/update.go
Comment thread pkg/commands/routingconfig/path/rule/create.go Outdated
Comment thread pkg/commands/domain/update.go Outdated
Comment thread pkg/commands/routingconfig/version/activate.go Outdated
Comment thread pkg/commands/routingconfig/version/list.go
Comment thread pkg/commands/routingconfig/version/list.go Outdated
Comment thread pkg/commands/routingconfig/activate.go Outdated
Comment thread pkg/commands/routingconfig/deactivate.go Outdated
Comment thread pkg/commands/routingconfig/delete.go Outdated
Comment thread pkg/commands/routingconfig/list.go Outdated

@kpfleming kpfleming left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, other than the decision to use deploy or activate.

@anthony-gomez-fastly
anthony-gomez-fastly merged commit bb93017 into main Oct 9, 2026
13 checks passed
@anthony-gomez-fastly
anthony-gomez-fastly deleted the CDTOOL-1744-routing-configs branch October 9, 2026 18:30
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.

4 participants