metal-cli
metal-cli copied to clipboard
feat: BETA loadbalancer service support
Part of https://github.com/equinix/metal-cli/issues/411
(Used CPEM's LBaaS Go project as the base. Lots of cleanup ahead. )
This PR introduces the minimal subcommand support to start working with LoadBalancers. This PR does not include ports and pools, which can be added later.
TODO:
- [x] Get LB
- [x] List LB
- [x] Detele LB
- [x] Create Project LB
- [x] Send debug transport to token exchange when debugging?
- [x] Ensure command docs are correct
- [ ] Ensure requirement checks (required fields) are correct
- [x] Ensure example commands are correct
- [x] Ensure command is named "loadbalancer-beta"
- [x] generate docs
One thing to consider here: if LBaaS has its own generated client that sits next to the metal client in equinix-sdk-go
, with its own spec and its own API endpoint, that may indicate that LBaaS CLI commands should go alongside Metal CLI commands in a broader-scoped Equinix CLI (eqx
? eqix
? the-equinix-cli
?) rather than directly in here.
Merged in latest updates and tested create/get/delete commands to verify they work.