Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC0027] CLI command "update-route" to manage generic per-route options #2

Closed

Conversation

Dariquest
Copy link

@Dariquest Dariquest commented Dec 9, 2024

RFC

CLI Support for Generic Per-Route Options

Introducing a new cli command 'update-route', which allows updates to route resources.
Extending the API of the Route to contain generic options map.

$ cf update-route -h
NAME:
   update-route - Update an existing route.

USAGE:
   cf update-route DOMAIN [--hostname HOSTNAME] [--path PATH] [--option OPTION=VALUE] [--remove-option OPTION]

EXAMPLES:
   cf update-route example.com -o lb_algo=round-robin
   cf update-route example.com -o lb_algo=least-connections
   cf update-route example.com -r lb_algo

OPTIONS:
   --hostname, -n      Hostname for the HTTP route (required for shared domains)
   --path              Path for the HTTP route
   --option -o         Set the value of a per-route option, key-value pairs, repeat to set multiple options
   --remove-option -r  Unset a previously set option

SEE ALSO:
   create-route, map-route, routes, unmap-route

Why Is This PR Valuable?

Allow users to manage per-route options via the CLI instead of having to talk to the API directly.

Applicable Issues

GitHub Issue

How Urgent Is The Change?

No urgency

@Dariquest Dariquest marked this pull request as draft December 9, 2024 15:36
@Dariquest
Copy link
Author

Closing this PR and opening the same one in the CF repo cloudfoundry#3328

@Dariquest Dariquest closed this Dec 10, 2024
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