92 Commits

Author SHA1 Message Date
Manuel Alejandro de Brito Fontes
90fe82a508 Remove ghost from the codebase 2022-02-28 14:17:07 +05:30
Kyle Brennan
aa52b3ecb0 [ws-manager-bridge] improve error handling for workspace cluster registration and update
Prevent duplicate workspace cluster registration & improve error message for update when workspace cluster doesn't exist
2022-02-22 09:37:01 +05:30
Kyle Brennan
efd72d8065 [ws-manager-bridge] include has-more-resources and has-user-level on cluster list 2022-02-22 09:37:01 +05:30
Gero Posmyk-Leinemann
a81c23ee50 [ts] Update network-facing libs like express (et al.), node-fetch, p-throttle 2022-02-21 22:34:01 +05:30
Gero Posmyk-Leinemann
f35571976f [bridge] Binding for PreparingUpdateEmulator 2022-02-17 16:03:57 +01:00
Gero Posmyk-Leinemann
8c6d938de0 [bridge] Fix PreparingUpdateEmulator initialization 2022-02-17 13:42:57 +01:00
Gero Posmyk-Leinemann
a3d1b614f8 [ws-manager-bridge] Emulate InstanceUpdates for 'Preparing' phase to decouple messagebus 2022-02-17 11:43:57 +01:00
Gero Posmyk-Leinemann
3179adc802 [ws-manager-bridge] Fix logging/metrics errors 2022-02-17 11:43:57 +01:00
Gero Posmyk-Leinemann
feb7907da1 [ws-manager-bridge] Make non-governing bridges distribute updates locally 2022-02-17 11:43:57 +01:00
Gero Posmyk-Leinemann
ddaea0e1c2 [messagebus] Remove shovel config, and all non-local (or outdated) exchanges 2022-02-17 11:43:57 +01:00
Gero Posmyk-Leinemann
caa8a23300 [ws-manager-api, protocol] Slight refactor of cluster selection
1. Generalized cluster selection for "HasPermission" AdmissionConstraints
 Before the "constraintNewWorkspaceCluster" was seen as special case, that also was too general. This way it's straight forward to extend to other permissions

 2. Separated "cluster authorization" into a separate Constraint which is applied to all ClusterSets. Before the authoritzation was more an optimization of the cluster precedence
2022-02-15 10:37:36 +01:00
Mads Hartmann
dd8b5b728a Remove OWNERS related files
Fixes https://github.com/gitpod-io/ops/issues/844
2022-02-08 09:15:30 +01:00
Gero Posmyk-Leinemann
3bd683e6ea [server] Run 'yarn lint' on every build 2022-02-04 14:29:26 +01:00
Prince Rachit Sinha
6b87feda1f Print audit logs when client header is set 2022-02-04 08:54:26 +01:00
Alex Tugarev
4a564067cd [ws-manager-bridge] update prebuild state properly 2022-02-03 13:54:25 +01:00
Christian Weichel
b67e3ecdb7 [workspace-cluster] Introduce has-more-resources constraint 2022-02-02 18:46:24 +01:00
Christian Weichel
dbeeafafd0 [workspace cluster] Remove admission preferences 2022-02-02 18:46:24 +01:00
George Tsiolis
31dfc5bd6b Update WebApp team label in component owners 2022-01-26 10:17:18 +01:00
Jan Koehnlein
d30815e685 [owners] rename team meta to webapp 2022-01-26 08:27:17 +01:00
Gero Posmyk-Leinemann
89e94030f9 Revert "[server, et al] Remove PrebuildStatusMaintainer and subsequent unused code"
This reverts commit 6dfe5520fc96757387d52237f35df9cf8a77943e.
2022-01-10 16:02:04 +01:00
Gero Posmyk-Leinemann
84b0fbee7a [server, et al] Remove PrebuildStatusMaintainer and subsequent unused code 2022-01-07 15:05:01 +01:00
Filip Troníček
b3fa44b7c1 Make analytic event casing consistent 2022-01-05 17:32:59 +01:00
Gero Posmyk-Leinemann
0189125c45 [protocol] Rename TraceContext.log* to TraceContext.set* 2021-12-10 14:26:35 +01:00
Mads Hartmann
28bf0e6541 component/gitpod-protocol/tracing: Add version tags to all spans
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-12-08 11:30:33 +01:00
Gero Posmyk-Leinemann
56874b6a0f [server, et. al] Add repeat(cb, ms) as replacement for setInterval, and use it across meta components 2021-12-07 18:43:33 +01:00
Christian Weichel
e1f11835e5 [ws-manager-bridge] Support forced cluster dereg 2021-11-18 13:00:15 +01:00
Manuel Alejandro de Brito Fontes
a30a1bff48 Add ExposedPorts message and remove Target and GlobalPort 2021-11-05 10:33:03 +01:00
Gero Posmyk-Leinemann
7abe78c917 [dev] Upgrade to node.js v16 and all major TS libs
This commit includes the following commits:
 - @iqqbot update dev image to nodejs v16lts
 - @iqqbot update dev-environment-image to use nodejs v16
 - @iqqbot update component to nodejs v16 lts
 - [licensor] Adjust to v16
 - [ts] Bump @types/node to ^16.11.0 accordingly
 - @aledbf Update typescript dependencies
 - @aledbf Update typescript configuration
 - @aledbf / @geropl Update typescript code
 - [server] Fix express/passport types
 - [db] typeorm upgrade 0.1.20 -> 0.2.22: fix compile and runtime issues
 - [db] typeorm upgrade 0.2.22 -> 0.2.38: fix compile and runtime issues
 - [dev] Upgrade amqplib and smaller libs
 - [dev] Upgrade uuid
 - [dev] Update probot
 - [dev] Final yarn.lock
2021-11-02 13:59:10 +01:00
Jan Keromnes
bad83721b7 [server][dashboard] Allow cancelling Prebuilds 2021-10-18 05:12:04 -03:00
Christian Weichel
9605e0b386 [wsman-bridge] Introduce admission preferences 2021-10-14 06:00:00 -03:00
Christian Weichel
8efac73cba [prow] Add labels to OWNERS files 2021-10-12 09:01:58 -03:00
Christian Weichel
ab20a12624 [ws-manager-bridge] Properly provide cluster metrics 2021-09-28 03:30:45 -03:00
Jan Keromnes
e416561243 [ws-manager-bridge] Also copy status.conditions.headlessTaskFailed into WorkspaceInstanceConditions 2021-09-28 03:28:45 -03:00
Gero Posmyk-Leinemann
15fcc0ee42 [protocol] Log.setLogLevel 2021-09-20 11:48:45 -03:00
Christian Weichel
b031cf3296 [ws-manager-bridge] Add status update metric 2021-09-20 04:57:45 -03:00
Gero Posmyk-Leinemann
5b6f33fc8a [ws-manager-bridge] Logging hygiene 2021-09-20 04:29:45 -03:00
Manuel Alejandro de Brito Fontes
a1dc90b927 Update node prometheus library to 13.2.0 2021-09-17 12:32:42 -03:00
Christian Weichel
0add786e81 [ws-manager-bridge] Add registered cluster metrics 2021-09-17 08:34:42 -03:00
Christian Weichel
4e59ceeb9f [ws-manager-bridge] Add kube-rbac-proxy 2021-09-17 08:34:42 -03:00
Manuel Alejandro de Brito Fontes
c7ba93c52e Configure grpc client ChannelOptions 2021-09-02 09:09:31 +02:00
Alex Tugarev
46feeac4c9 [projects] Add Prebuild Events 2021-09-01 04:27:30 -03:00
Manuel Alejandro de Brito Fontes
77ef3cae47 [ws-manager-bridge] Remove unused grpc dependency 2021-08-31 09:20:30 -03:00
Yauhen Pyl
a6d7ed4a5f Missed semicolon 2021-08-30 02:34:28 -03:00
Manuel Alejandro de Brito Fontes
1545241295 [ws-manager-bridge] Sync node grpc options with go counterpart 2021-08-23 18:05:22 +02:00
Simon Emms
a169bc0239 [workspace]: update force-stop logs 2021-08-23 12:53:22 +02:00
Sven Efftinge
f0fab5bcf9 [ws-man-bridge] don't update stopped workspaces
back to stopping.
2021-08-17 10:04:13 +02:00
Simon Emms
f35e762354 [workspace]: add force-stop check on stopping workspaces
Since #4910 stopped counting "stopping" workspaces for billing purposes,
any workspace caught in a "stopping" phase would never be force-stopped.
This adds a conditional "includeStopping" boolean (defaulting to `false`)
to the DB implementation and the meta-instance-controller simply includes
that phase in the search.

It was discovered that ~200 workspaces were caught in this phase (90%
prebuilds) so this phase is necessary to force-stop.
2021-08-13 13:12:12 +02:00
Christian Weichel
871f550d80 [ws-manager-bridge] Remove VERSION
logging is not a good enough reason to restart bridge so often
2021-08-12 18:00:12 +02:00
Christian Weichel
cce91040ec [ws-manager-bridge] Set stopping/stopped time
when forcing the phase from preparing or unknown
2021-08-06 16:32:05 +02:00
Simon Emms
031111f700 fix(workspace): force-stop workspaces stuck in a bad state 2021-08-06 13:19:05 +02:00