47 Commits

Author SHA1 Message Date
Christian Weichel
bdbbd3e373 [ws-manager] Fix broken CDWP test case
/werft no-preview
2020-12-09 15:56:50 +01:00
Anton Kosyakov
f53f2fbb35 [proxy] mini browser host pattern 2020-12-09 14:50:45 +01:00
Christian Weichel
423f67fb03 [ws-manager] Correctly compute NodeAffinity with registry_facade
/werft no-preview
2020-12-09 08:18:53 +01:00
Christian Weichel
adc29f35e6 [ws-scheduler] Introduce ghost-workspace scaler 2020-12-08 16:35:44 +01:00
Christian Weichel
31372243e2 [ws-manager] Support ghost workspaces
which act as palceholders for actual workspaces.
2020-12-08 16:35:44 +01:00
Christian Weichel
44e6aa820b [ws-manager] Add metrics for unary gRPC methods 2020-12-08 09:34:40 +01:00
Christian Weichel
86562cac2c [ws-manager] Support configurable gRPC rate limits 2020-12-08 09:34:40 +01:00
Christian Weichel
71d616c363 [ws-manager] Don't complain when dangling service is already gone 2020-12-03 14:43:20 +01:00
Christian Weichel
4206fda07d [ws-manager] Don't request 0 resources, but don't request at all
/werft no-preview
2020-12-02 13:11:50 +01:00
Christian Weichel
2cd97bb049 [ws-manager] Follow Prometheus naming best practices 2020-12-01 15:48:45 +01:00
Christian Weichel
ed5058bb6f [ws-manager] Remove ws-daemon node selector
now that we have ws-scheduler doing this for us
2020-11-27 14:59:44 +01:00
Christian Weichel
f0b4643f13 [ws-manager] Add requiredNodeServices annotation 2020-11-27 14:59:44 +01:00
Christian Weichel
8d7deffb49 [ws-manager] Less noisy marking of timed out WS in intermediate state 2020-11-27 09:57:18 +01:00
Christian Weichel
72c5e488d0 [ws-manager] Close headless listener properly
fixes #2280
2020-11-25 16:46:05 +01:00
Anton Kosyakov
01a9ccde32 fix #2253: use more specific type for headless task messages 2020-11-25 16:24:46 +01:00
Anton Kosyakov
2b74b1e742 [dashboard] redirect from prebuild only when it is stopped 2020-11-25 16:24:46 +01:00
Sven Efftinge
7dd708aaa6 [ws-man] avoid 'fatal error: concurrent map read and map write' 2020-11-25 13:09:51 +01:00
Christian Weichel
9f98c92a25 [ws-manager] Properly report FallbackToLogsOnError termination messages 2020-11-06 13:54:09 +01:00
Christian Weichel
70f5232603 [misc] Misc auto-generated files 2020-11-06 13:53:47 +01:00
Christian Weichel
b914e2df86 [ws-daemon] Allow user-namespaced ops only in user-namespaced workspaces 2020-11-05 08:08:32 +01:00
Anton Kosyakov
94981bd214 [theia] move port handling to the supervisor 2020-11-04 05:50:23 +01:00
Christian Weichel
56175a4950 [ws-manager] Change workspace container termination msg policy
so that we get the last log output rather than a termination message.
2020-11-04 05:50:23 +01:00
Christian Weichel
cab9957da9 [ws-manager] Make workspace seccomp profile configurable 2020-10-28 08:46:58 +01:00
Christian Weichel
ecfa0b4ed6 [ws-daemon] Install custom seccomp profile for user namespaced workspace 2020-10-28 08:46:58 +01:00
Christian Weichel
11406fc397 [user namespace] Disable seccomp to make clone work
The default containerd seccomp profile seems to prevent the clone
syscall with `CLONE_NEWUSER` and/or `CLONE_NEWNS`.
2020-10-23 16:20:08 +02:00
Christian Weichel
4444675ce0 [user namespaces] Start IDE and terminals as gitpod user again 2020-10-23 16:20:08 +02:00
Christian Weichel
f4e06ea96c [ws-manager] Set restartPolicy to never
ws-manager deletes failed workspace pods and we don't
support failed workspace restarts this way. Kubernetes
trying to restart the container breaks things occasionally.
2020-10-23 16:20:08 +02:00
Christian Weichel
4a9c8f910e [ws-daemon] Provide IWH through unix socket rather than canaries 2020-10-23 16:20:08 +02:00
Christian Weichel
5a7903b089 [supervisor] Introduce user-namespace rings 2020-10-23 16:20:08 +02:00
Christian Weichel
a6a84d0c93 [supervisor] Use SIGTERM instead of PreStop hook 2020-10-23 16:20:08 +02:00
Christian Weichel
16ae8cc5cf [ws-sync] Provide shiftfs mark mount upon request 2020-10-23 16:20:08 +02:00
Christian Weichel
2e3ec08811 [supervisor] Provide mock Gitpod API for testing 2020-10-21 11:42:31 +02:00
Christian Weichel
8d1664f81f [ws-daemon] Search and replace ws-sync
This should have happened in #2003

/werft https=true
2020-10-19 10:26:18 +02:00
Christian Weichel
75558809c7 [go] go mod tidy in all components 2020-10-19 07:46:04 +02:00
Christian Weichel
7172d822c7 [ws-daemon] Fold ws-manager-node into ws-daemon 2020-10-19 07:46:04 +02:00
Christian Weichel
6d93dd8348 [ws-daemon] Rename ws-sync to ws-daemon 2020-10-19 07:46:04 +02:00
Anton Kosyakov
75b97c7a6d [supervisor] tasks support 2020-10-14 11:14:31 +02:00
Christian Weichel
16cb352b5d [ws-manager] Apply feature flags only once if specified multiple times
There's no guarantee that a ws-manager client will list a feature flag
only once in a `StartWorkspaceRequest`. In fact, the combination of the
`GITPOD_DEFAULT_FEATURE_FLAGS` and a user's persistent feature flags
can lead to duplicate FFs being sent by server. This change makes
ws-manager robust against such cases.
2020-10-13 11:10:53 +02:00
Christian Weichel
2f5cca3ff0 [ws-manager] Provide user namespacing ability using a feature flag 2020-10-13 11:10:53 +02:00
Christian Weichel
285edb4c7b [go] go mod tidy all components 2020-10-13 11:10:53 +02:00
Christian Weichel
1cf441ab78 [ws-manager] Fix workspace container command
rather than relying on the gp layer to set the correct one
2020-09-09 09:02:41 +02:00
Christian Weichel
372a3610be [supervisor] Move from /api to /_supervisor 2020-09-07 09:50:32 +02:00
Christian Weichel
8f3d87237d Use the new API routes instead of /gitpod/ready 2020-09-07 09:50:32 +02:00
Christian Weichel
46b091d7ab [supervisor] Future proof and harmonize the supervisor API 2020-09-07 09:50:32 +02:00
Christian Weichel
3a84d35b36 [ws-manager] Report IDE image as part of the workspace spec
Note: this change is not backwards compatible as it makes incompatible
changes to the protocol.
2020-09-04 14:12:06 +02:00
Christian Weichel
757c19a935 [registry-facade] Move from theia version to IDE image
This move allows us to specify an IDE docker image at workspace startup,
rather than just selecting from a fixed set of Theia images.
2020-09-04 14:12:06 +02:00
gitpod-init
24f7b609bf initial commit 2020-08-25 09:25:15 +00:00