14 Commits

Author SHA1 Message Date
Mads Hartmann
ea6081e7ff Remove unused scripts 2022-12-08 10:16:18 -03:00
Aleksandar Aleksandrov
b774d7af39 Clean up bash scripts in favour of previewctl 2022-12-07 09:11:17 -03:00
Aleksandar Aleksandrov
a24507158a Preview-vm create and delete uses the new TF flow 2022-10-10 12:45:25 +02:00
Mads Hartmann
6c9f601993 Port-forward directly to k3s 2022-09-26 16:00:27 +02:00
ArthurSens
ed0e8262f0 Introduce CLI for interactions with Preview environments.
Following our [internal RFC](https://www.notion.so/gitpod/A-Go-based-CLI-for-interacting-with-Preview-Environments-1834aa90bc104a0b836dd523e22f9e93), the work done in this CLI was to make sure it is easily extendable with new commands and that the architecture makes it easy to test.

It also introduces the first command asked in Milestone 1 of that same RFC. Which makes it possible to install the kube-context of different preview environments.

Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2022-05-31 20:39:49 +05:30
JenTing Hsiao
99eb430968 Fix typo
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-05-08 22:31:23 +05:30
Mads Hartmann
97d8eb91d7 Improve process handling and show stdout/stderr 2022-05-04 17:48:19 +05:30
Mads Hartmann
6ce82a0488 Fix paths in portforward-monitoring-satellite-X.sh 2022-05-04 17:36:20 +05:30
Mads Hartmann
3bb6681ed1 Move port forwarding scripts to util. Added support for setting VM_NAME 2022-05-04 17:36:20 +05:30
Mads Hartmann
d594f9c243 Move install-vm-ssh-keys.sh to util folder 2022-05-04 17:36:20 +05:30
Mads Hartmann
d99e6d080c Move download-and-merge-harvester-kubeconfig.sh to util 2022-05-04 17:36:20 +05:30
Mads Hartmann
4ad9f6f0f3 make ssh-vm cwd agnostic and move ssh-proxy-command to util 2022-05-04 17:36:20 +05:30
Mads Hartmann
4ab9e3a48a Dont hash if the branch is 20 chars or less 2022-03-11 13:50:18 +05:30
Mads Hartmann
afa2bd1cb8 Allow for branch name lengths of 45
This relaxes the branch name restriction from 20 characters to 45. This is achieved by constructing the preview name based on the first 10 characters of the branch name and then the first 10 characters of the hashed value of the branch name.

All places that (to my knowledge) rely on the preview name has been updated.

Fixes https://github.com/gitpod-io/ops/issues/1252
2022-03-11 13:50:18 +05:30