Commit Graph

59 Commits

Author SHA1 Message Date
Peter Matseykanets 6c774cf59a
Bump dependencies for v2.11 (#414) 2025-03-12 15:29:36 -04:00
Peter Matseykanets 80099f6ea0
Respect proxy settings and set http timeout in login and ssh commands (#406)
Ref: https://github.com/rancher/rancher/issues/48321
2024-12-09 12:55:26 -05:00
Sakala Venkata Krishna Rohit 0b6ae1f01b
Remove app, catalog, multiclusterapp commands (#405)
Ref: https://github.com/rancher/rancher/issues/48252
2024-12-03 14:59:06 -05:00
Peter Matseykanets 3d831ec6cf
Improve cluster|project list-members subcommands (#399)
Ref: https://github.com/rancher/rancher/issues/47692
2024-11-01 14:46:29 -04:00
Enrico Candino 11d795b557
Fix panic on `context switch` (#386)
* added bool check for missing focused server, fixed panic

* added main branch to FOSSA workflow

* return error instead of bool
2024-08-22 15:58:43 +02:00
Enrico Candino 0e8a1106be
Added linter and removed deprecated and unused packages (#357)
* Create go.yml

* updated golangci config file

* renamed action file

* removed unused prompt command

* fixed SA6005 (staticcheck): used strings.EqualFold

* removed unused monitor package

* removed unused funcs and fields

* fixed SA1019 (staticcheck): removed deprecations

* added missing error checking

* fixed linter

* removed unused (and unimplemented) commands

* added error to getClusterK8sOptions

* oneliner err check in displayListServers

* removed unused docker dependency
2024-04-10 11:52:59 +02:00
Harrison 8e4a8c2361
Merge branch 'v2.9' into v2.7 2024-02-09 11:05:49 -05:00
Marc Brugger 36f631a436
make runnable on windows
Signed-off-by: bakito <github@bakito.ch>
2023-12-07 20:45:29 +01:00
Tom Lebreux 938f1840d3 Move config loading to config/config.go 2023-09-20 15:25:10 -04:00
Caleb Bron b3fca8431a Revert "Adds cluster-name flag instead of implied (#325)"
This reverts commit 80d8bdfb11.
2023-04-10 09:42:21 -07:00
Steffan Tucker 80d8bdfb11
Adds cluster-name flag instead of implied (#325)
Updates cluster commands to require an explicit flag if using a cluster
name instead of a cluster id. This could be a breaking change, as
previously you could pass either the id or name
2022-11-21 08:17:46 -07:00
Max Sokolovsky 67e64fb210 Transform all keys to JSON format as specified by struct tags for RKE config values 2021-11-24 12:07:29 -05:00
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
Daishan 36f9405fa9 Add c-m- provisioing v2 format to regex for context 2021-09-16 12:20:11 -07:00
Steven Crespo 87af700d0e Remove rancher/types dependency and update imports 2021-06-22 14:47:31 -07:00
rmweir be4db7f360 Cache kubeconfig used for kubectl commands 2021-05-31 14:44:10 -07:00
rmweir f3a38aea7f Revert "Merge pull request #297 from rmweir/kubeconfig-cache-2"
This reverts commit 3057692998, reversing
changes made to 85998abbe8.
2021-01-25 10:26:46 -07:00
rmweir bfe0ed5d0f Cache kubeconfig used for kubectl commands 2021-01-12 09:59:08 -07:00
rmweir 5b3a40d168 Revert "Cache kubeconfig used for kubectl commands"
This reverts commit 1325642350.
2020-12-16 12:28:55 -07:00
rmweir 1325642350 Cache kubeconfig used for kubectl commands 2020-12-14 15:29:37 -07:00
Tom Cain 5860516f5e add global config flag and store token with config
kubeconfig token will now be stored with the rest
of the rancher config rather than in the .cache
directory. The location of the config directory
can now be configured.
2020-12-02 19:42:38 +00:00
Dan Ramich c6e4f5537e Update error checks to be go style 2020-02-27 14:44:29 -07:00
Dan Ramich 4c28202dd7 Pass rancherVersion when fetching templates
Problem:
Rancher supports enforcing apps versions but all app templates are shown
even if they are not compatable with the version of rancher running

Solution:
Add the rancherVersion filter when getting templates so only valid app
templates are shown
2019-08-08 16:13:32 -07:00
Georges Chaudy b130a9bfce add rancher server command 2019-08-01 00:33:52 +01:00
Murali Paluru 8fdf66aff3 fix yaml keys 2019-07-12 10:49:07 -07:00
gitlawr 6db7b1aa8e Wait for mcapp to be active on install/upgrade/rollback/add-project and add timeout flags 2019-03-13 09:16:52 -07:00
gitlawr 0e018c33f5 Add globaldns commands
- add globaldns provider/entry commands
- add create/update/delete/list-members/add-member/delete-member
commands for provider/entry
- add add-project/delete-project commands for entry
2019-02-28 19:23:21 -07:00
gitlawr fdeca9b4e8 Multi-cluster app RBAC changes
- Add subcommands for updating target projects
- Add subcommands for updating/listing members
- Add --member, --member-access-type option on install
- Add --role option on install/upgrade
- Add flag for showing role details in show-app command
2019-02-25 08:44:13 -07:00
Craig Jellick fee193c87f Allow for local cluster when parsing context
"local" is a valid cluster id. Our parsing function wasn't allowing
for it.
2019-01-28 11:09:46 -07:00
Sebastiaan van Steenis d913776262 Add quiet option to add-node and import, deprecate use of --management in add-node 2018-12-20 10:49:39 -08: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
Sebastiaan van Steenis 975cbb442f Make context configurable by id at login 2018-07-31 09:53:45 -07:00
Dan Ramich 221e9254b7 Fix app namespace issue
Problem:
Apps of the same name deploy into the same namespace. This fails when a
namespace is owned by another project

Solution:
Apps should be deployed into a unique namespace unless specified
otherwise.
Add a flag to specify the namespace
Create a namespace with a random suffix to deploy the app into if
namespace is not specified
2018-05-17 10:18:55 -07:00
Dan Ramich a935b41100 Consistency Changes
Update deletes to allow passing in multiple names/IDs for the same resource.
Update ls of resources to accept --quiet to allow passing to delete
Update arg checking to stop being an error and instead show --help for the command/subcommand
2018-05-14 18:17:53 -07:00
Dan Ramich ab6d47bca0 Update inspect to be case insensitive
Problem:
Inspect requires a type to be camelcase if that's how it shows in the
schema

Solution:
Make inspect note care about case
2018-05-14 18:15:21 -07:00
Dan Ramich c89f2d76a8 Add catalog command 2018-05-07 19:42:34 +02:00
Dan Ramich 7e602aeadf Fix spelling errors 2018-04-20 13:23:15 -07:00
Dan Ramich 4cc8e2bdfc Add settings command
Problem:
Users are unable to see or set settings

Solution:
Add ability to list, get and set settings
2018-04-16 15:00:40 -07:00
Dan Ramich 683e68e41b Add inspect command 2018-04-16 10:43:52 -07:00
Dan Ramich 5500b99435 Add ability to search by name 2018-04-13 13:45:08 -07:00
Dan Ramich 96b83aa942 Member actions for cluster and project
Problem:
Unable to do any members actions with clusters and projects

Solution:
Add ability to add and remove members from clusters and projects
rancher project add-member-role --role <a> --role <b> <user>
Add new subcommands to list available roles for the cluster/project
rancher project list-roles
Add new subcommand to list current members/roles in a cluster/project
rancher project list-members
2018-04-09 14:38:30 -07:00
Dan Ramich db1b649669 Update cluster command
Problem:
Cluster does not match the ui

Solution:
Update ls layout to match ui
Add new column for currently focused cluster
Add options from the UI for creation of cluster
2018-03-28 18:18:19 -07:00
Dan Ramich 306a81a546 Change to login 2018-03-23 12:08:26 -07:00
Dan Ramich d2dbfa3314 Remove ununsed files and dependencies 2018-03-22 14:03:01 -07:00
Dan Ramich 2d711d35c9 Add flag to show current context 2018-03-02 14:13:23 -07:00
Dan Ramich 953852d840 Update login project selection output
Problem:
Output does not include cluster name or details

Solution:
Update output to show cluster name, details and headers
2018-02-28 18:22:33 -07:00
Dan Ramich 864c811f99 Fix reading of cert 2018-02-16 10:55:27 -08:00
Dan Ramich ec1e283323 Adding of new commands 2018-02-13 11:01:39 -07:00