-
Notifications
You must be signed in to change notification settings - Fork 931
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
Implement per-route options in the CF CLI #3314
Comments
There are some questions / topics that need decisions: Do we use
|
I just noticed that you can't change the app protocol via the CLI on a route that is mapped to an application. I was only able to do so by un-mapping the route and re-mapping it again which could be an issue if you want to make such a change without causing downtime. So I'm very much in favour of introducing
I would prefer the pretty-print version, it seems more readable to me.
Agree.
If you want to unify them make sure to raise this on cloudfoundry/capi-release#482 / cloudfoundry/cloud_controller_ng#4080 because once those are in there isn't going to be any change on them in the CC API and changes in the other components will also be more complicated. |
is this an inherent limitation, or could this be something that is just added to Thanks! Raised the point about naming unification in cloudfoundry/capi-release#482. |
I don't know. When I tried changing the protocol via map-route all I got was this:
And the protocol stays the same, changing that behaviour would probably be considered breaking. |
that said, we would want to be able to set options when mapping a route initially, right? Maybe we can then add a hint to the message you show that points at "use |
To be conform with all the code guidelines and naming conventions for the code and json templates, we should take "load-balancing" instead of "loadbalancing". My proposal would be: {"options":"load-balancing":"round-robin","session-cookie":"JSESSIONID"} We would have a german flair naming it "loadbalancing". E.g. session-cookies should also be named sessioncookie then, not only in the code, but also in json "sessioncookie" instead of "session_cookie". One more example:
|
The point of Shortening it was another reason. The shorter the better for the UI. But I also don't want another layer of mapping. The load balancing algorithm option is also the first one now, possibly setting the tone for future options. The name for "cookie name for sticky session IDs" in my examples is an (admittedly lazy) example that I haven't thought about much. It could very well be My concern was mostly to keep the options straight between CLI, manifest and API, as we're exposing such internals directly to the user. I want to avoid mapping of the same concept to different names depending where you are. That also means for me: the constraint of showing it in the CLI in a compact fashion while remaining understandable informs the name. |
What's the user value of this feature request?
Allow users to manage per-route options via the CLI instead of having to talk to the API directly.
Who is the functionality for?
Users of the per-route features.
How often will this functionality be used by the user?
Unknown.
Who else is affected by the change?
The change is not breaking and optional.
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
Implement the RFC specification.
Specifically I propose that we add a new command
update-route
which allows updates to the route resource. This should be implemented in a generic way to not require a change in the CLI when adding a new per-route feature. I have something like this in mind:Plus a link to the documentation describing the currently implemented options, probably we could link directly to the API spec which has to list the available options.
Describe alternatives you've considered
We could implement each field as a separate flag but that would require users to update the CLI to use new per-route options.
Additional context
The text was updated successfully, but these errors were encountered: