29 Commits

Author SHA1 Message Date
Milan Pavlik
23eb2d6292
[previewctl] Create admin credentials command (#16805)
* [previewctl] Create admin credentials command

* fix

* fix

* retest

* handle create/update

* Fix

* Fix
2023-03-13 16:09:49 +01:00
Mads Hartmann
e35f6827ad Simplify staleness heuristics 2023-02-07 12:35:45 +01:00
Mads Hartmann
32acb09b8d Only exit if installing SSH keys fails 2023-02-02 14:17:43 +01:00
Mads Hartmann
9a6e19e156 Implement preivew-env-gc and run on schedule 2023-02-02 14:17:43 +01:00
Milan Pavlik
bf43329fa0 [previewctl] Add create command as alias to leeway run preview:dev 2023-01-25 08:33:32 +01:00
Aleksandar Aleksandrov
5d7b8b85cc Handle context installation when switching underlying infra 2023-01-24 14:40:32 +01:00
Aleksandar Aleksandrov
d7e43a583c [previewctl] point to infra dir by default for stale 2023-01-18 14:01:26 +01:00
Sven Efftinge
40de87874b [previewctl] changed staleness logic
consider all rbanches that have had eactivity in the past 30 days,
and also remove existance of workspace instances as activity
as that would include prebuilds and create false positive activity
2023-01-03 16:55:43 +01:00
Mads Hartmann
b1af927299 Add initial Job Summary for the install job 2022-12-23 08:47:32 -03:00
Aleksandar Aleksandrov
a5a91d76d3 Skip stale branch check for artificial jobs 2022-12-15 11:17:25 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Aleksandar Aleksandrov
19e93c4a30 preview delete cron use previewctl list stale 2022-12-07 06:28:17 -03:00
Aleksandar Aleksandrov
881abd7e00 previewctl list stale 2022-12-06 14:22:16 -03:00
Aleksandar Aleksandrov
2a9f3fb1ab previewctl tidy and simplify 2022-12-06 13:29:16 -03:00
Aleksandar Aleksandrov
2f48822159 Previewctl use PREVIEW_ENV_DEV_SA_KEY_PATH as default for SA account flag 2022-12-05 12:29:17 -03:00
Mads Hartmann
3f040eb439 Add retry option to install-context 2022-11-24 05:58:53 -03:00
Aleksandar Aleksandrov
0f5843878f previewctl fix branch flag 2022-11-03 14:15:08 +01:00
Aleksandar Aleksandrov
7b4377a746 Refactor previewctl install-context 2022-11-03 13:30:08 +01:00
Aleksandar Aleksandrov
dbdecc38cb Fix previewctl SA, rebuild and update docker img 2022-10-24 11:18:38 +02:00
Aleksandar Aleksandrov
d8f6138551 Refactor previewctl get-name 2022-10-21 12:53:36 +02:00
Aleksandar Aleksandrov
4c59bdae5d previewctl get-credentials 2022-10-19 14:38:34 +02:00
JenTing Hsiao
f88985aaa9 previewctl: install-context honors the branch name
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-28 03:52:22 -03:00
Mads Hartmann
ba6a0162e1 Implement --watch mode for previewctl install-context 2022-07-12 14:44:59 +02:00
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
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