okteto / okteto

Develop your applications directly in your Kubernetes Cluster
https://okteto.com
Apache License 2.0
3.2k stars 312 forks source link

Enable alternative OKTETO_INSTALLATION_PATH for install/upgrade script #3963

Closed viddo closed 7 months ago

viddo commented 10 months ago

Is your feature request related to a problem? Please describe. I'd like to install multiple versions of okteto and be able to choose where the binary is written. Primary use-case is for confirming bug before writing up a report, specifically to ease comparing behavior between a stable / beta version.

Describe the solution you'd like

Hypothetical, proposed happy-path:

curl https://get.okteto.com -sSfL | OKTETO_CHANNEL=beta OKTETO_INSTALLATION_PATH=/tmp/okteto-beta sh
> Using Release Channel: beta
> Using Version: 2.20.0-beta.1
> Using custom installation path: /tmp/okteto-beta
> Downloading https://downloads.okteto.com/cli/beta/2.20.0-beta.1/okteto-Darwin-arm64
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 76.2M  100 76.2M    0     0  28.6M      0  0:00:02  0:00:02 --:--:-- 28.7M
> Installing /tmp/okteto-beta
Password:
> Okteto successfully installed!

Describe alternatives you've considered

I'm aware that I can manually download a release from Github's release page, e.g. https://github.com/okteto/okteto/releases/tag/2.20.0-beta.1 but I find it clunky when there already exist a script

Additional context

ifbyol commented 9 months ago

When triaging/working on this, be aware of the implications of this and the dynamic Kubetoken feature. If the CLI is not installed in the PATH, it won't be used for the Kubeconfig generated by Okteto.

github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 60 days with no activity. Comment on this issue or it will be closed in 7 days

andreafalzetti commented 7 months ago

Issue moved to JIRA: https://okteto.atlassian.net/browse/LAKE-110

viddo commented 3 weeks ago

FWIW, found workaround in case someone is interested in this for whatever reason, it's enough to make a shell script to get a hold of older versions by steps outlined in release → installation methods https://github.com/okteto/okteto/blob/eab2d4914fc3628455639bed71a0182cc8438477/docs/RELEASE.md?plain=1#L43-L62