174 Commits

Author SHA1 Message Date
Mads Hartmann
06557ea800 Remove build artifacts from leeway package srcs lists 2022-12-12 08:12:22 -03:00
Aleksandar Aleksandrov
2a3187377b Default to letsencrypt cert isuser 2022-12-12 08:01:22 -03:00
ArthurSens
3e93373784 Remove Kubescape from preview environments
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2022-12-08 16:52:18 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Mads Hartmann
77d765d21f Wait for certificate and log error when it fails 2022-12-08 12:12:18 -03:00
Mads Hartmann
fc9235008a Run scripts in parallel. Deploy monitoring-satellite by default 2022-12-08 12:11:19 -03:00
Mads Hartmann
ea6081e7ff Remove unused scripts 2022-12-08 10:16:18 -03:00
Aleksandar Aleksandrov
d68df21459 Install previewctl from cache 2022-12-07 14:01:17 -03:00
Aleksandar Aleksandrov
b774d7af39 Clean up bash scripts in favour of previewctl 2022-12-07 09:11:17 -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
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
Mads Hartmann
28ba48f1dd Remove previewctl from image, install as init task instead 2022-11-22 14:37:52 -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
Aleksandar Aleksandrov
ca2c83e785 Pass less variables from werft to create-preview and add storage-class annotation 2022-11-21 14:08: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
4bdf65c209 Refactor previewctl 2022-11-12 11:37:41 +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
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