Peter Matseykanets
f6c0117700
[v2.10] Bump rancher to v2.10.0 and remove deprecated globaldns subcommand ( #402 )
...
* Bump rancher dependencies to v2.10.0
* Remove globaldns subcommand https://github.com/rancher/rancher/pull/47590
2024-11-19 07:37:25 -05:00
Chad Roberts
eca4a72c8c
Ensure that localProvider is always the 0th provider listed in the provider selection prompt. ( #389 )
2024-09-07 09:50:06 -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
Peter Matseykanets
fbbf20571a
[v2.9] Bump dependencies ( #377 )
...
* Bump bci image to 15.6
* Bump rancher api and client-go packages
* Remove PodSecurityPolicy references
* Bump rancher to v2.9 head
2024-07-17 17:41:08 -04:00
Enrico Candino
93aad721b3
[v2.9][forwardport] Small refactor (error messages) ( #375 )
...
* small refactor for requested changes
* added error to error message
* used ErrorContains in tests
2024-05-31 16:37:45 +02:00
Enrico Candino
192a95e4ed
[v2.9] Migrate from Drone to Github Actions, remove Dapper and add Darwin/arm64 support ( #362 )
...
* enabled gofmt linter, added lint scripts, removed dapper from Makefile
* added build (with arm64 support), package steps, and fossa job
* github tag, and envs
* upload assets
* removed dapper and google cloud storage
* moved checkout steps
* removed drone.yml
* requested changes
- removed extra Test step
- added check for run on PRs
- added FOSSA check on release
* moved fossa in its own workflow
* remove manual trigger and tag check on release
2024-05-06 12:31:58 +02:00
Enrico Candino
36d1121f95
Azuread support ( #346 )
...
* azuread support
* import of rancher types
* fixes and cleanup
* removed unused func
bump rancher
added dashboard implementation
* added device auth flow
updated login request
removed unused import
removed prompt flag
* updated go.mod, removed pkce package
go mod fix
* added cluster specific kubeconfig
* go mod update
* bump of rancher client-go
* dropped rancher fork of client-go
* fix lint and errors
* added getClient func
- added getClient func to create once the HTTP client with the same TLS configuration.
- added tests for the getAuthProviders func
* insecureRequest
* removed personal references
* revert name
2024-04-23 15:02:14 +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
Enrico Candino
457fa11905
Merge pull request #349 from enrichman/44374-rfe-cli-server-command-cleanup
...
Cleanup of `rancher server` command
2024-02-13 15:22:56 +01:00
Enrico Candino
8349461de9
added test to serverLs, edded config to tabwriter
2024-02-12 17:32:04 +01:00
Enrico Candino
52441bfdeb
added serverDelete tests, fix for delete current
2024-02-12 15:50:32 +01:00
Enrico Candino
7d8aff605e
changed visibility of server commands funcs
2024-02-12 15:39:34 +01:00
Enrico Candino
e44ed8a41d
moved cfg to server command
2024-02-12 15:36:25 +01:00
Harrison
8e4a8c2361
Merge branch 'v2.9' into v2.7
2024-02-09 11:05:49 -05:00
Enrico Candino
dfc1e76c9e
added parallel test
2024-02-08 15:52:10 +01:00
Enrico Candino
a8f52a0e69
updated tests
2024-02-08 15:41:15 +01:00
Enrico Candino
ed8d91870d
validate as beforeFunc
2024-02-08 15:36:25 +01:00
Enrico Candino
649548a89a
added tests
2024-02-08 15:36:24 +01:00
Enrico Candino
bb9f0a46b2
fix server current panic, server commands refactor
2024-02-08 15:36:24 +01:00
Enrico Candino
e09dfcac5a
fix panic
2024-02-08 15:34:55 +01:00
Enrico Candino
49f30d1d26
fix panics
2024-02-08 10:09:15 +01:00
Marc Brugger
c23b0e68be
Merge branch 'rancher:v2.7' into v2.7
2023-12-07 20:51:34 +01:00
Marc Brugger
36f631a436
make runnable on windows
...
Signed-off-by: bakito <github@bakito.ch>
2023-12-07 20:45:29 +01:00
Eliyam Levy
726ffd2a7a
Update saml auth login endpoint to dashboard endpoint
2023-09-28 11:52:12 -04:00
Eliyam Levy
6b577d1a5c
Update saml auth login endpoint to dashboard endpoint
2023-09-28 11:11:18 -04:00
Tom Lebreux
938f1840d3
Move config loading to config/config.go
2023-09-20 15:25:10 -04:00
Daniel Southward-Ellis
bd803b2d40
Fix cluster create --import flag ( #332 )
...
Co-authored-by: Daniel Southward-Ellis <danielsouthwardellis@catalyst.net.nz>
2023-07-13 13:37:55 -07: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
Harrison Affel
142054bc6c
update errors and usage for add-node
2022-08-30 15:13:57 -04:00
Harrison
4196225776
Merge pull request #316 from HarrisonWAffel/check-for-no-servers
...
Display message when no servers are available
2022-06-08 11:06:23 -04:00
Steven Crespo
81f702dc3b
Fix index out of bounds when installing hidden chart
2022-06-07 12:23:00 -07:00
Harrison Affel
e5566acfd5
if no servers are configured, state such when running servers ls, switch, or delete
2022-06-01 11:21:41 -04:00
Harrison Affel
e402eff6ac
improve clusters create description
2022-05-17 11:24:15 -04:00
Jiaqi Luo
ee24d42b01
fix the issue that RKE2 or K3S clusters are recognized properly in the output of the 'cluster list' command
2022-05-10 17:45:04 -07:00
Max Sokolovsky
baa08d8d18
Escape quotes in username, password, responseType for an auth request
2022-04-18 17:37:30 -04:00
Max Sokolovsky
27cb4fdbd2
Merge pull request #310 from maxsokolovsky/properly_unmarshal_rke_config_settings
...
Transform all keys to JSON format for RKE config values
2022-02-18 15:28:45 -05: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
a9204188e3
Bump Rancher dependency and use nodeName when getting machine
2021-11-10 14:33:00 -07: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
7f9f974dd2
Add support for --set-string flag
...
- Add support for answersSetString through a --set-string flag
for apps and multicluster apps
- Update tests
2021-06-22 15:33:35 -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
Dan Bason
309141e97c
Remove explicit userID
2021-02-23 14:49:05 +13: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
kinarashah
408863c243
minor fixes for kubeconfig exec credential
...
- set correct kind for ExecCredential
- update help command to reflect Rancher config dir
- check for nil timestamp
2020-12-04 13:26:28 -08:00