-
Notifications
You must be signed in to change notification settings - Fork 40
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
Rename project_ip_pools_list
and _view
#5919
Conversation
e753486
to
82915c2
Compare
I'm a bit confused by all of this 😅 Would there be much harm in leaving the system and silo endpoints as they are, and changing |
I think I would prefer that too if we can come up with a decent name. Since |
I like |
76810d7
to
eb408f9
Compare
I'm going to argue separately for the current status quo, but first against
However! If we're going to change these endpoints, I'd suggest we first want to move them into the "silos" tag (i.e. out of the current "projects" tag). I think there a couple of options to consider. First, note that half of the operations in the "networking" tag start with This is all to say 1. there's some cleanup that might be warranted and 2. it might be best to kick this can further down the road. |
Sympathetic to all points, definitely tempted to punt. My counter-feeling is that "project_" is straight up wrong, so there has to be something we change it to that's better than straight up wrong. |
You know that's my go-to move.
I'm less convinced that it's wrong, but if we're going to change something I'd suggest we change the system-level endpoints to have a prefix and leave the silo-context ones as |
I think you're succeeding at getting me to just give up here. I guess I considered putting the prefix on the fleet ones, but I was surprised to find that we only have the It felt a bit heavy to put the prefix on like 15 endpoints here. omicron/nexus/tests/output/nexus_tags.txt Lines 154 to 172 in c36ada9
|
Just an idea, not married to it. Figured it was just as easy to PR as to write an issue.
These endpoints were named when we thought IP pools might be project-scoped, but they are not; they are silo-scoped, with no plans I can see to change that. So it would be cool if we could get
project_
out of the endpoint names. However, there are complications that make it hard to pick a natural alternative. There are three (3) different IP pool list endpoints:ip_pool_list
/v1/system/ip-pools
silo_ip_pool_list
/v1/system/silos/{silo}/ip-pools
project_ip_pool_list
/v1/ip-pools
Usually we treat the silo-scoped endpoint as the conceptual default and therefore leave off a qualifier (which would mean adding
system_
to the fleet-scoped list and view). But in this case, there are a bunch of other system-level IP pool endpoints that will never have analogues inside the silo and which it feels silly to addsystem_
to.omicron/nexus/tests/output/nexus_tags.txt
Lines 154 to 172 in 76e140b
So I want to add the qualifier to the silo-scoped endpoint. Because
silo_ip_pool_list
already exists, I went with renamingproject_ip_pool_list
tocurrent_silo_ip_pool_list
.