282 Commits

Author SHA1 Message Date
Christian Weichel
337f8f3960
Bump golang.org/x/crypto (#20683)
* Bump golang.org/x/crypto

* Don't bump toolchain

* go mod tidy

* go mod tidy

* Fix proxy build
2025-03-21 06:49:50 -04:00
Kyle Brennan
58c9a1808a
[ws-manager-mk2] update to support k8s 0.30 API (#20580)
* [go components] Fixed "go test ./..." in various components

Tool: gitpod/catfood.gitpod.cloud

* [go components] Update k8s 0.29.3 -> 0.30.9 API

 - update the go-update-wc-deps.sh script to handle the brunt of that transition
 - fixes Maintenance- + Subscriber-Controller
 - document steps

Tool: gitpod/catfood.gitpod.cloud

* [ws-manager-mk2] Decide how to apply appamor config based on serverversion to support k8s 1.30+

Tool: gitpod/catfood.gitpod.cloud

* [gpctl] Missing go mod tidy

Tool: gitpod/catfood.gitpod.cloud

* Replace vulnerable outcaste-io/badger/v3 with original dgraph-io/badger/v3

Tool: gitpod/catfood.gitpod.cloud

* more go mod tidy

Tool: gitpod/catfood.gitpod.cloud

* [image-builder-bob, installer] Select the correct version of containerd....

Tool: gitpod/catfood.gitpod.cloud

---------

Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
2025-02-07 03:58:22 -05:00
mustard
f0763afc35
Auto-configure default JVM Xmx based on workspace resources (#20536)
* Auto-configure default JVM Xmx based on workspace resources

* Add max xmx and unit tests
2025-01-22 12:37:12 -05:00
iQQBot
663fcb9587
[ws-proxy] upgrade golang-crypto (#20499)
* [ws-proxy] upgrade golang-crypto

* Upgrade all direct deps

* Upgrade `golang.org/x/crypto` to v0.31.0

* bump up

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
2025-01-08 01:31:23 -05:00
Gero Posmyk-Leinemann
7f43d48115
[server, dashboard] Introduce multi-org (behind feature flag) (#20431)
* [server config] Introduce isDedicatedInstallation, and use it to replace isSIngleOrgInstallation

incl. further cleanup around getConfiguration and server config

* [server, dashboard] Remove enableDedicatedOnboardingFlow feature flag and replace is with getInstallationConfiguration.IsDedicatedInstallation

* [dashboard, server] Remove "sinlgeOrgMode"

* [server] OrganizationService: block createTeam consistently for org-owned users

* [server, dashboard] Introduce "enable_multi_org" feature flag to allow admin-user to create organizations

* [dashboard] introduce "/?orgSlug=", which allows to pre-select an org in a "create workspace" URL (e.g. "/?orgSlug=org1#github.com/my/repo")

* [db] Auto-delete container "test-mysql" if it's already present

* fix tests

* [dashboard] Check if localStorage is available before using it

* [dashboard] SSOLogin: fix orgSlug source precedence to: path/search/localStorage

* [server] Deny "joinOrganization" for org-owned users

* Gpl/970-multi-org-tests (#20436)

* fix tests for real

* [server] Create OrgService.createOrgOwnedUser, and use that across tests to fix the "can't join org" permission issues

* Update components/server/src/orgs/organization-service.ts

Co-authored-by: Filip Troníček <filip@gitpod.io>

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
2024-12-09 08:00:16 -05:00
Kyle Brennan
a5d64889e5
[preview] update to gen117 image (#20395) 2024-11-28 05:05:05 -05:00
Robo Quat
8566114855
[JetBrains] Update IDE images to new build version (#20387)
* [JetBrains] Update IDE images to new build version

* Remove `JetBrainsPluginImagePrevious`

---------

Co-authored-by: Huiwen <mhqnwt@gmail.com>
2024-11-26 04:18:03 -05:00
mustard
21f546d4c1
JetBrains IDEs 2024.3 stable release (#20370)
* Auto script

* Point cline and rider to old backend plugin version

* Make stable plugin build

* Make rider build

* Update patch for rr and cl

* Make stable Gateway compatible
2024-11-16 01:19:54 -05:00
Pudong
6a1111a2db
Add flex oidc support (#20324) 2024-10-29 04:26:54 -04:00
Kyle Brennan
0be8880b7c
Update preview AMI (#20163) 2024-09-02 05:50:45 -04:00
Huiwen
f640e29376
[JetBrains] force upgrade IntelliJ IDEA to 2024.2 (#20120)
* [JetBrains] force upgrade intelliJ to `2024.2`

* Force append a version

* Force use latet backend-plugin

* Pin backend-plugin version

* fix preview env

* 1

* Address feedback
2024-08-15 10:50:18 -04:00
Kyle Brennan
8b03f055f6
Update for gen115 (#19995) 2024-07-03 11:14:16 -04:00
Huiwen
76504135d5
Deprecate intelliJ 2022.3.3 (#19828)
* Deprecate intelliJ 2022.3.3

* fix unit tests

* update warning msg

* Remove expiration date

* Remove entire warning

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
2024-06-21 17:26:16 +02:00
Gero Posmyk-Leinemann
940f234205
[server] Move ff google_cloud_profiler into env var/installer config (#19912) 2024-06-20 13:19:15 +02:00
Huiwen
f9c0969d7d
[JetBrains] support RustRover editor (#19839)
* [JetBrains] support RustRover

* Add startup json

* fixup generate

* Add svg icon
2024-06-05 04:04:16 +08:00
Huiwen
a2110ce16b
[JetBrains] upgrade EAP version to 2024.1.2 (#19780)
* Update Platform Version of JetBrains Backend Plugin (EAP) to 242.10180-EAP-CANDIDATE-SNAPSHOT

* Update EAP to use latest 2024.1

* fixup

* resolve jetbrains eap images

* fix preview no EAP

* fixup

* fix base image

* fixup

---------

Co-authored-by: Robo Quat <roboquat@gitpod.io>
2024-05-28 02:05:08 +08:00
Pudong
a7547c83e5
improve dev container (#19757) 2024-05-20 15:45:01 +08:00
Huiwen
f360aeb700
[GHA] add VS Code Browser release (#19746)
* [gha] init code stable upgrade script

* fixup

* Add gha

* fixup

* Add build PR action

* Add missing place
2024-05-16 13:47:54 +08:00
Huiwen
2aaa732737
Update JetBrains launcher image (#19743)
* Update JetBrains launcher image

* fix patch
2024-05-15 15:47:53 +08:00
Pudong
c6f0571cc3
[registry-facade] switch to use hostPort (#19739)
* [registry-facade] switch to use hostPort

* cleanup post-process.sh
2024-05-14 23:54:52 +08:00
Pudong
e6e412c809
Add devcontainer support (#19725)
* add devcontainer support

* root

* root2

* use $HOME

---------

Co-authored-by: hwen <mhqnwt@gmail.com>
Co-authored-by: Huiwen <huiwen@gitpod.io>
2024-05-10 23:03:48 +08:00
Kyle Brennan
606963acdf
[test] fix integration tests (#19692)
* [test] fix TestProcessPriority

Need to give ws-daemon time before it applies process priority

* [server] always limit network connections

We are not limiting network connections for preview environments

* Cleanup

* Fix

* Always do network limiting
* Regardless of billing mode
* If there's an error

* Wait a bit longer, just in-case, to make the test more durable

* Cleanup

* No parallel

* [preview] update to use gen111 image

* [test] fix TestOpenWorkspaceFromPrebuild test

It was failing with an exit code of 2 on grep, because it was trying to grep a folder, rather than recurse into it.

When the grep command was run manually from a workspace that started from a prebuild, we saw `grep: logs: Is a directory`. So, it's important for integration tests to output the exit code, but also error text.

* [test] fix TestOpenWorkspaceFromPrebuild

We need to wait for the started workspace to stop, before we try to restart it

* be parallel again

* Nope

* Set StripeSecret on Preview install

Otherwise this returns false:
643701c635/components/server/src/billing/billing-mode.ts (L25)

Because EnablePayment is set to false at install time:
643701c635/install/installer/pkg/components/server/configmap.go (L282)
2024-05-07 20:12:46 +08:00
Kyle Brennan
1db192b14c
[preview] deploy monitoring after gitpod is deployed (#19690)
This helps avoid the scenario where the image-pull-secret is added to the monitoring-satellite namespace, and not our default namespace.

How to test:
`leeway run dev:preview` from a local branch, all pods should enter ready (w/o this change they do not)
2024-05-01 00:17:40 +08:00
Pudong
1bc46bd2a5
Refactor preview environment and image build methods (#19652)
* [dev-image] upgrade terraform and gcloud

* update leeway version and use new cache bucket

* update image tag

* use oidc

* fix bob

* Add code web extension as package

* gcr token refresh

* fluentbit use service account

* Add xterm web ide as package

* add ide configmap patch

* fix ide first page 502

* remove secret manager

* fix monitoring

* fix integration and delete preview

* cleanup

* use previewctl:install

* change folder

* cleanup

* change leeway cache bucket for main branch

* cleanup

* fix

* hot-deploy
2024-04-26 20:50:04 +02:00
Manuel Alejandro de Brito Fontes
5992b0f614
Update go dependencies (#19577)
* Update go dependencies

* Update S3

* Caddy plugins cannot use 1.22

* Update controller runtime signatures

* Update webhook suite test

* Update IPFS signatures

* Update go modules

* Update ipfs-cluster to v1.0.8

* Fix node-labeler build

* Fix IPFS CID parsing

* Update ipfs-cluster version

* Update controller-runtime signature

* Update statefulset signature

* Disable controller-runtime metrics

* Add comments
2024-03-26 20:55:35 +01:00
suchsoon
a307738d04
remove repetitive words (#19527)
Signed-off-by: suchsoon <silverjadebeauty@gmail.com>
2024-03-25 12:07:34 +01:00
Pudong
20e5eded62
[preview env] remove harvester dependency (#19543) 2024-03-15 07:45:24 +02:00
Kyle Brennan
c31ef8232e
[preview] update to gen108 VM image (#19403)
* [preview] update to gen108 VM image

* [preview] sleep longer

This is a bandaid. With a shorter sleep, the API server tries to come online, but fails. As a result, core-dns stays pending, and calico and other manifests are never applied.

* [preview] no local storage

* [preview] wait for containerd

* [preview] disable-network-policy, as per k3s suggestion when using calico as CNI

ref: https://docs.k3s.io/installation/network-options#custom-cni

* [preview] improve parity with prod

* [preview] gain more parity with prod

* [preview] scale coredns to 1

* [preview] use out of the box coredns

* remove tweak for containerd readiness in cloudinit.yaml
2024-02-11 20:21:53 +02:00
Kyle Brennan
85274ef7b1
[image-builder-bob] build to latest buildkit fork (#19383)
Also, drive-by changes to fix linter issues for preview scripts
2024-02-06 17:14:48 +02:00
Huiwen
47c636bff5
Revert preview env workspace classes changes (#19268) 2023-12-15 10:12:22 +02:00
Huiwen
653d858fa8
Add org-level workspace class restrictions (#19191)
* Add org-level maxmium workspace class limit

* [papi] add ListOrganizationWorkspaceClasses method

* Use papi in dashboard

* Validate when updating

* Fix bug

* Make it select default

* Align figma

* Option checking

* fixup

* Use switch button

* Add feature flag

* `invaldiator2` => `invalidateWorkspaceClasses`

* Don't allow to all if selected ones are removed from installation

* Update respond error msg

* dashboard show error msg

* fixup

* update proto doc

* Apply suggestions from code review

Updated error wording.

* update order

* Fix edge case

* Hide delete scope if not owner

* Update error msg

* Not cache org ws cls

* Force update org info

* Rename query file

* Add todos

* Remove refetch

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
Co-authored-by: Laurie T. Malau <laurie@gitpod.io>
2023-12-15 08:48:22 +02:00
Kyle Brennan
9cbb9e5a8c
[workspace] update AMI for gen107 for previews (#19251) 2023-12-14 15:29:21 +02:00
Gero Posmyk-Leinemann
3e79652b04
[dev] Add "previewctl get url" (#19167) 2023-12-01 10:22:08 +02:00
Pudong
10fe5b9699
[sshgateway] use ssh CA to auth (#19147)
* [sshgateway] use ssh CA to auth

* change name

* add error log

* fix

* mark volume optional

* [installer] validate ssh-ca secret

* Revert "[installer] validate ssh-ca secret"

This reverts commit ca6ede78a7b5a720fd315eca32eb277cb5063069.

We must support the scenario where the installer has the secret, but, it is not in the cluster yet.

---------

Co-authored-by: Kyle Brennan <kyle@gitpod.io>
2023-11-30 19:17:08 +02:00
Nandaja Varma
6c0bb90a74
Update k3s to gen 106 (#19004) 2023-11-07 10:26:44 +02:00
Manuel Alejandro de Brito Fontes
8ef82ff356
Update go modules to 1.21 (#18805) 2023-09-26 17:52:05 +03:00
Wouter Verlaek
0a44cfab5a
Update k3s to gen105 (#18771)
* Update to gitpod-k3s-202309220546

* Update k3s
2023-09-22 17:36:02 +02:00
Gero Posmyk-Leinemann
19dcde4d80
[db] inCluster: remove mysql version flag (#18740) 2023-09-19 10:20:58 +02:00
Manuel Alejandro de Brito Fontes
5c90a1a859
Improve workspace preview resource utilization (#18632)
* Improve workspace preview resource utilization

* Fix deployment

* Do not remove fluentbit
2023-09-01 08:57:58 +02:00
Manuel Alejandro de Brito Fontes
687f337899
Enable leader election in ws-manager-mk2 (v3) (#18539)
* Enable leader election in ws-manager-mk2

* Update go modules

* Move workspace activity to CRD

* Remove workspace activity

* Cleanup

* Update ws-manager-mk2 CRD

* Cleanup

* Restore lastActivity logic

* TEST

* Disable observability

* Start the grpc server after leader election

* Bount the source of subscribers to an informer

* Cleanup

* Avoid deepCopy

* Remove goroutine to execute OnReconcile

* Refactor last activity to be consistent acrtoss the controllers

* Address feedback
2023-08-26 22:28:52 +02:00
Wouter Verlaek
7b66ab6dbe
Link to preview logs (#18602) 2023-08-25 12:19:51 +02:00
Kyle Brennan
35f98d9289
[preview] use k3s 1.26 (#18521)
Related to https://github.com/gitpod-io/gitpod-packer-gcp-image/pull/248
2023-08-22 21:51:48 +02:00
Kyle Brennan
34b4602286
[ws-manager-mk2] remove experimental mode feature (#18513)
* [installer] remove experimental mode

* [ws-manager-mk2] remove experimental node selector

* [ws-manager-api] remove ExperimentalMode from configuration

* Add `ws-manager-api` to vscode workspace

* [preview] remove experimental & bump deps

Depends on https://github.com/gitpod-io/gitpod-packer-gcp-image/pull/246

* [preview] LocalStorageCapacityIsolation is GA, no needed as a gate in 1.27
2023-08-15 06:37:41 +02:00
Kyle Brennan
581307b192
[preview] update VM image to account for kernel update (#18499)
Depends on https://github.com/gitpod-io/gitpod-packer-gcp-image/pull/245
2023-08-13 02:04:39 +02:00
Kyle Brennan
051f000ef0
[preview] update again for gen103 (#18489) 2023-08-11 14:15:37 +02:00
Kyle Brennan
deaee3fd7e
[preview] update vm image for gen103 (#18470) 2023-08-09 20:18:35 +02:00
Manuel Alejandro de Brito Fontes
61f89f8436
Update go modules (#18372) 2023-07-28 16:20:30 +08:00
Gero Posmyk-Leinemann
f96ba5011d
[.werft] Remove (almost) entirely (#18361)
* [.werft] Delete superfluous files

* Move post-process.sh

* move vm folder

* fix
2023-07-28 15:23:29 +08:00
Manuel Alejandro de Brito Fontes
54c2040632
Update go modules to 1.20 (#18360) 2023-07-27 22:24:29 +08:00
Milan Pavlik
a778e6dd76
[installer] Remove messagebus WEB-618 (#18216)
* [server] Publish events during workspace starter

* retest

* fix

* fix

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* [server] Publish events during workspace starter

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* fix

* [installer] Remove messagebus

* fix

* fix
2023-07-24 20:51:40 +08:00