Commit Graph

272 Commits

Author SHA1 Message Date
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
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 792e2c58d6 Reverting to 9ac2118268
Removing new flag added to token command
2020-11-10 09:03:30 -07:00
Tom Cain 294a97676f cli: fix key used to extract cache-dir 2020-11-05 21:47:41 +00:00
Tom Cain d49d5ddb1e add optional path to cache kubectl token 2020-10-29 11:05:06 +00:00
Steven Crespo 964ba435f7 Remove conversion of values to answers 2020-10-14 13:31:37 -07:00