1
0
mirror of https://github.com/rancher/cli.git synced 2026-02-05 09:48:36 +01:00

11 Commits

Author SHA1 Message Date
Donnie Adams
1a2f5d2bb5 Support SSH for v2 provisioned machines
Before this change, it was not possible to use the SSH command to
connect to machines provisioned with v2 provisioning. After this change
(and including the changes to Rancher), the CLI will use the new CAPI
client to get the SSH key and config from Rancher for v2 provisioned
machines.

A side effect of this change is the addition of the new `rancher
machines ls` command that lists all machines for the current cluster
context.
2021-11-01 17:24:12 -07:00
Steven Crespo
87af700d0e Remove rancher/types dependency and update imports 2021-06-22 14:47:31 -07:00
Dan Ramich
fa7ea63697 Fix inspect and wait
Problem:
ByID errors on valid resources

Solution:
Return if no error to stop fallthrough to final error
2019-02-12 09:48:14 -07:00
rmweir
81ea6892df Add message when project/cluster unavailable.
Previously, both functions would return 404 with no additional information or recommended actions.
Now, both inform the user that either the current project or cluster is not available, respectively.
It is then suggested the user runs `rancher context switch`. Finally, the error is displayed.
This will aid the user in resolving the error.
2019-01-24 09:33:17 -07:00
Dan Ramich
5767d78872 Enhance scripting with cli
Problem:
CLI asks to verify certs on login
No way to wait for a resource to be available

Solution:
Add a skip-verify flag to login
Add wait command to wait for a cluster to be in active state
2018-11-27 11:25:55 -08:00
Alena Prokharchyk
389539fb68 Revert "Enhance scripting with cli"
This reverts commit e0241450ff.
2018-11-27 11:12:27 -08:00
Dan Ramich
e0241450ff Enhance scripting with cli
Problem:
CLI asks to verify certs on login
No way to wait for a resource to be available

Solution:
Add a skip-verify flag to login
Add wait command to wait for a cluster to be in active state
2018-11-07 15:59:17 -07:00
Dan Ramich
463cba5c1b Update cli client to build in parallel
Problem:
When creating the master client, three other clients are needed which
requires multiple calls to the rancher server. This is done synchronously
and causes large delays before the command is actually run

Solution:
Build the clients async to speed up the time it takes to build the
master client
2018-05-07 18:46:44 +02:00
Dan Ramich
3a12b9fb41 Add option flags for project create and ps 2018-03-02 14:13:08 -07:00
Dan Ramich
18878eadfb Stop usage of previous config on login
Problem:
When logging in a previous config would be used and if the cluster was
removed an error would occur

Solution:
Previous configs are no longer used for login
2018-03-01 11:13:19 -07:00
Dan Ramich
ec1e283323 Adding of new commands 2018-02-13 11:01:39 -07:00