192 Commits

Author SHA1 Message Date
Mads Hartmann
332a3a0550 Make werft-credential-helper work outside workspaces 2022-07-14 04:25:00 +02:00
Mads Hartmann
8338b6b1bd Apply suggestions from code review
Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>
2022-07-12 14:44:59 +02:00
Mads Hartmann
ba6a0162e1 Implement --watch mode for previewctl install-context 2022-07-12 14:44:59 +02:00
Manuel Alejandro de Brito Fontes
ea6ade104f Update containerd and docker dependencies 2022-07-06 13:31:53 +05:30
JenTing Hsiao
856371178d Revert "Update k8s dependencies to v0.24.2"
This reverts commit 2911bc3283c2b79aacde0d16bce056de62eb696b.
2022-07-05 11:11:01 +02:00
Manuel Alejandro de Brito Fontes
2911bc3283 Update k8s dependencies to v0.24.2 2022-07-05 03:37:52 +05:30
Aleksandar Aleksandrov
eee5f2f258 previewctl install-context --watch 2022-06-28 11:48:36 +05:30
ArthurSens
95109db730 previewctl: Add SSH command
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2022-06-21 17:53:31 +05:30
ArthurSens
59071b4dce previewctl: Re-implement list-vms in go
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2022-06-20 23:12:30 +05:30
ArthurSens
ddae876f62 previewctl: Improve logging around install-context watch
Switched log library to Logrus

Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2022-06-06 22:26:16 +05:30
ArthurSens
ad5f38f370 Add get-name command
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2022-05-31 20:39:49 +05:30
ArthurSens
b065e9b124 Add Leeway BUILD file
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2022-05-31 20:39:49 +05:30
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
6c0a49cbf8 Fix typo
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-05-09 15:07:24 +05:30
JenTing Hsiao
99eb430968 Fix typo
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-05-08 22:31:23 +05:30
Christian Weichel
c2ed0f4a38 [dev] Add werft credential helper 2022-05-04 23:24:20 +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
22a8956a2a Add script to list VM name to be used with VM_NAME 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
dc8693d4a2 Move distribute-images.sh to test folder
Fix comments, they used // but bash uses #
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
5a68617a39 make install-k3s-kubeconfig cwd agnostic 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
5706b83cc7 Overwrite existing k3s entries in the kubectx
This is needed when switching bracnhes or when using
clean-slate-deployment.
2022-04-27 14:24:13 +05:30
JenTing Hsiao
5ecbd29232 Use configured reverse proxy port rather than fixed port
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-04-26 18:41:39 +05:30
Mads Hartmann
640cc97ca1 Temporary fix: Always sleep 10 seconds 2022-04-26 18:29:38 +05:30
Pavel Tumik
119a892378 allow to specify vm name when connecting to harvester VM 2022-03-27 10:20:10 +05:30
Arthur Silva Sens
9bb0d124bd Add comment regarding iamge garbage collection 2022-03-21 23:18:28 +05:30
Moritz Eysholdt
4f759a57d3 Add script to preload images onto nodes 2022-03-21 23:18:28 +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
Arthur Silva Sens
39cf522451 dev/preview/test/load-test.sh: Add missing option 2022-03-08 20:02:15 +05:30
ArthurSens
3af1ed80b6 dev/preview/test: Update load test script to use correct branch name
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2022-03-08 20:02:15 +05:30
Mads Hartmann
249e846bff Shellcheck: quote variable 2022-02-24 14:49:03 +05:30
Mads Hartmann
55ba428b2c Script for basic load testing of VMs preview envs 2022-02-24 14:49:03 +05:30
Wulf Thimm
0470c1eb73 added script to download k3s kubeconfig for preview-environments
/werft with-vm=true
2022-02-02 10:25:24 +01:00
ArthurSens
ec2bf80858 Provide scripts to access monitoring-satellite in core-dev and harvester previews
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2022-01-28 10:54:20 +01:00
Pudong Zheng
657883ce79 change vm-ssh port to 2200
(cherry picked from commit 6926c575f4485b4275cb151eeba0320c23347905)
2022-01-26 12:16:18 +01:00
Mads Hartmann
53da29a5c9 dev/preview: Add script for SSH login 2022-01-26 12:16:18 +01:00
Mads Hartmann
c732acb039 Add Harvester kubectl context to kubeconfig 2022-01-06 15:09:00 +01:00