replicated
replicated copied to clipboard
(Draft) Add a few instance commands
Outstanding work to make this ready
- [ ] pact test for usage of
/instances
V4 API withcustomerSelector
- [ ] add more k8s info to instances list view
Right now you need a customer to make this work, because I couldn't get the appSelector
to work with the v4 api. There's a few things we should add, including listing all instances, and a few k8s cluster details we can add in.
$ replicated customer instance ls Paypal
ID STATUS VERSION VERSIONS-BEHIND VERSION-AGE VERSION-AGE-RELATIVE LAST-CHECKIN TTI-LICENSE TTI-INSTANCE FIRST-READY
2JByR1V ready 1.0.2 4 3d8h 3d8h 2022-12-23 00:00 9m44s 0m4s 2022-12-20 00:00
2JK93av ready 1.2.0 1 1d2h 1d2h 2022-12-28 15:05 2d22h 7m19s 2022-12-23 00:00
2JK9CVv missing 1.0.2 4 3d8h 3d8h 2022-12-28 15:02 2d22h 1m50s 2022-12-23 00:00
2JMsKqo ready 1.2.0 1 1d2h 1d2h 2022-12-25 00:00 4d1h 3h56m 2022-12-24 00:00
2JMsQiT ready 1.2.0 1 1d2h 1d2h 2022-12-25 00:00 4d1h 1m31s 2022-12-24 00:00
Using the -o wide
flag will give the following columns:
ID STATUS VERSION VERSIONS-BEHIND VERSION-AGE VERSION-AGE-RELATIVE LAST-CHECKIN TTI-LICENSE TTI-INSTANCE FIRST-SEEN FIRST-READY LICENSE-CREATED LATEST-CHANNEL-RELEASE FULL-ID
instance inspect
will show a mini terminal version of the instances page. This is a little goofy but I don't hate it. It gives a good way to test multiple consumers of the backend data.
replicated customer instance inspect Paypal 2Jvas53

I held off on this because there was testing infrastructure missing at the time, but if anyone wants to resolve conflics and run with it, they should feel welcome to do so.