37 Commits

Author SHA1 Message Date
Aleksandar Aleksandrov
19e93c4a30 preview delete cron use previewctl list stale 2022-12-07 06:28:17 -03:00
Aleksandar Aleksandrov
2a9f3fb1ab previewctl tidy and simplify 2022-12-06 13:29:16 -03:00
Aleksandar Aleksandrov
4110b07a9a dev/preview:configure-workspace fix 2022-12-06 08:18: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
Sven Efftinge
a96cb7bf36 [ws-classes] simplify workspace classes
simplified by
- removing user-level setting
- removing deprecation
- removing ws-class inheritence between ws sessions
2022-12-01 13:59:00 -03:00
Milan Pavlik
6f0deca146 [server] Configure PAT signing key 2022-11-30 05:30:59 -03:00
Mads Hartmann
a0a88cdc24 Replace GCP_ADC_FILE with a service account key 2022-11-28 09:15:57 -03:00
Aleksandar Aleksandrov
263699cf9f Use TF_WORKSPACE var to set workspaces 2022-11-25 07:54:54 -03:00
Aleksandar Aleksandrov
a271690ab8 Build less packages for preview envs 2022-11-25 06:39:54 -03:00
mustard
7c6766cfb4 [werft] add public api token service support for preview environment 2022-11-24 06:15:53 -03:00
Mads Hartmann
3f040eb439 Add retry option to install-context 2022-11-24 05:58:53 -03:00
Aleksandar Aleksandrov
2fef214976 Fix currently selected workspace doesn't exist 2022-11-22 05:58:51 -03:00
Aleksandar Aleksandrov
b6dd58593e Prompt on preview create if branch is not in remote 2022-11-22 05:47:51 -03:00
Milan Pavlik
fb29551aa8 Revert "[usage] Deploy usage by default"
This reverts commit 6c1994cd3fb3c66e3cb1da2520f24c4298c72c76.
2022-11-16 18:18:46 +02:00
Mads Hartmann
b3133651d9 Log a warninig if branch isn't pushed 2022-11-16 16:40:46 +02:00
Milan Pavlik
6c1994cd3f [usage] Deploy usage by default 2022-11-16 14:04:46 +02:00
Mads Hartmann
2ca799dda0 Fail gracefully when executed from main 2022-11-16 13:30:45 +02:00
Aleksandar Aleksandrov
444b4e82fa Don't require input for tf when running leeway dev:preview 2022-11-15 16:12:45 +02:00
Laurie T. Malau
c9496a034a [installer] Update installer to use credits config 2022-11-14 13:02:44 +02:00
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
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
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
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
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
Aleksandar Aleksandrov
85ab504eb8 Terraform workflow for preview envs 2022-09-20 12:45:21 +02:00