192 Commits

Author SHA1 Message Date
Manuel Alejandro de Brito Fontes
78d66165ee Remove --dont-retag 2022-11-12 11:37:41 +02:00
Mads Hartmann
1358951f07 Building locally will produce a unique version every time 2022-11-11 15:30:41 +02:00
Mads Hartmann
7dc37f1bdb Set default namespace to monitoring-satellite 2022-11-10 14:54:40 +02:00
Mads Hartmann
2fbb9ed1a1 Use local paths for gitpod-io imports 2022-11-10 14:54:40 +02:00
Mads Hartmann
032d1efdfd Perform all operations in the temporary directory
Apply files one at a time to help debugging
2022-11-10 14:54:40 +02:00
Mads Hartmann
a467f1ae29 Introduce dev/preview:deploy-monitoring-satellite 2022-11-10 14:54:40 +02:00
Milan Pavlik
cc233e41e6 [installer] Deploy Public API without experimental config 2022-11-09 15:30:39 +01:00
Pavel Tumik
5f4c07de30 fix preview deploy with prebuildPVC 2022-11-09 14:58:39 +01:00
Mads Hartmann
4ff9f6f796 Move previewctl install-context to leeway run dev:preview
`leeway run dev/preview:create-preview` is used in Werft where the
contexts are installed separately, so moving it to `dev:preview` is
better for now.
2022-11-09 11:08:38 +01:00
Mads Hartmann
f0a23ac5f3 Introduce leeway run dev:preview 2022-11-09 09:47:39 +01:00
Tarun Pothulapati
0da12047f6 [werft] Update previews to use analytics token from secret
Fixes https://github.com/gitpod-io/gitpod/issues/14509

Currently, Analytics in preview environments are broken through
werft as we need to pass the write key through attributes which
means we would leak it.

This PR fixes that by instead updating weft to read them from
a Kubernetes secret (This is already added into the cluster. See
https://github.com/gitpod-io/ops/pull/6614). This means users
now enable analytics by using setting `analytics: segment` and
we read `segment-staging-write-key` to make it work. This secret
is set to the staging segment source right now.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-11-08 14:38:38 +01:00
Andrew Farries
5d7fdd6fe0 Add support for with-slow-database annotation
If this annotation is set on the job, install toxiproxy into the preview
environment.
2022-11-04 11:30:08 +01: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
Mads Hartmann
043ece6f7e Deal connection issues gracefully 2022-11-03 12:32:08 +01:00
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