77 Commits

Author SHA1 Message Date
Mads Hartmann
efd028629d Move logic related to deploying Gitpod to preview environments to dev/preview:deploy-gitpod 2022-11-03 12:32:08 +01:00
Aleksandar
740ca0998d
[preview] Remove unnecessary dns (#14290)
* [preview] Remove unnecessary dns

* [preview] Remove unnecessary dns
2022-10-31 16:19:02 +01:00
Aleksandar Aleksandrov
cc61e54c2d [preview] configure cert-issuer 2022-10-31 10:05:05 +01:00
Mads Hartmann
30fd0a9b42 Use dev/preview:create-preview in Werft 2022-10-26 12:04:40 +02:00
Mads Hartmann
c87781b6d2 Only delete specific folders 2022-10-25 14:39:39 +02:00
Mads Hartmann
7bc5b56cdf Clean git repository before performing build
Add additional build args
2022-10-25 14:39:39 +02:00
Aleksandar Aleksandrov
63725853ba Pin harvester tf provider version 2022-10-25 11:55:39 +02:00
Aleksandar Aleksandrov
3393f87cd0 Fix previewctl get-name and update image 2022-10-25 10:47:39 +02:00
Aleksandar Aleksandrov
36e811eafc previewctl get-credentials 2022-10-24 15:09:39 +02:00
Mads Hartmann
91d2777f18 Initial prototype
Fails with error

│ Error: the server could not find the requested resource (post keypairs.harvesterhci.io)
│
│   with harvester_ssh_key.harvester_ssh_key,
│   on vm.tf line 59, in resource "harvester_ssh_key" "harvester_ssh_key":
│   59: resource "harvester_ssh_key" "harvester_ssh_key" {
2022-10-24 15:09:39 +02:00
Aleksandar Aleksandrov
b34bc3feef ┳━┳ ヽ(ಠل͜ಠ)ノ 2022-10-24 13:25:38 +02:00
Aleksandar Aleksandrov
486a875198 use previewctl get-creds 2022-10-24 13:25:38 +02:00
Aleksandar Aleksandrov
dbdecc38cb Fix previewctl SA, rebuild and update docker img 2022-10-24 11:18:38 +02:00
mustard
9490c15320 [preview] fix certification error and dns issue 2022-10-23 15:51: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
Moritz Eysholdt
a8f6a7a0f9 Activate ZeroSS Certificate Issuer for core-dev 2022-10-18 15:49:33 +02:00
Aleksandar Aleksandrov
8a292423a0 Read default value for storage class 2022-10-12 18:17:29 +02:00
Aleksandar Aleksandrov
a6e5622035 Fix cert recreation 2022-10-12 11:43:27 +02:00
Aleksandar Aleksandrov
4d75b29b61 Create preview env dns records using tf 2022-10-12 10:37:27 +02:00
Aleksandar Aleksandrov
6e2cc4b725 Create preview env cert using TF 2022-10-12 09:31:27 +02:00
Mads Hartmann
8dc8bea32b Add leeway dev/preview:* tasks 2022-10-11 16:14:27 +02:00
Aleksandar Aleksandrov
65e99997bc Add a lock timeout for plan/apply and general timeout on apply 2022-10-11 11:49:26 +02:00
Aleksandar Aleksandrov
a24507158a Preview-vm create and delete uses the new TF flow 2022-10-10 12:45:25 +02:00
Manuel Alejandro de Brito Fontes
d5eb5815b5 Update to 1.19 2022-10-04 15:17:22 +02:00
Manuel Alejandro de Brito Fontes
3f6cbd07f1 Update go dependencies 2022-10-04 15:17:22 +02:00
Christian Weichel
174a09222f Revert "Run go work sync"
This reverts commit 6b23167e09f74062b31150d4044a8fe7cacbc34b.
2022-09-29 05:28:29 +02:00
Aleksandar Aleksandrov
c9929f82dc Terraform resources for Harvester VM and LBs 2022-09-28 14:36:28 +02:00
Christian Weichel
6b23167e09 Run go work sync 2022-09-28 08:45:28 +02:00
Mads Hartmann
6c9f601993 Port-forward directly to k3s 2022-09-26 16:00:27 +02:00
Aleksandar Aleksandrov
85ab504eb8 Terraform workflow for preview envs 2022-09-20 12:45:21 +02:00
Manuel Alejandro de Brito Fontes
438ffab694 Update k8s dependencies to v0.24.4 2022-08-23 08:18:39 +02:00
Manuel Alejandro de Brito Fontes
7b4a885ee3 Update k8s dependencies to v0.24.3 2022-08-23 08:18:39 +02:00
Andrew Farries
c4363513a5 Run gofmt
gofmt -w .

From the repository root.
2022-08-08 10:54:52 -03: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
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