Gero Posmyk-Leinemann
26f7f5d742
Add more initializer-related info to /insights API ( #20572 )
...
* [ws-manager, ws-daemon] Store initializer metrics in workspace.Status.InitializerMetrics
Tool: gitpod/catfood.gitpod.cloud
* [ws-mananger-api, -mk2] Emit new field .Status.InitializerMetrics
Tool: gitpod/catfood.gitpod.cloud
* [db] Introduce DBWorkspaceInstanceMetrics and persist all metrics from ws-manager-api into it
Tool: gitpod/catfood.gitpod.cloud
* [api] Expose session.Metrics.InitializerMetrics
Tool: gitpod/catfood.gitpod.cloud
* [dashboard] Export metrics into CSV
Tool: gitpod/catfood.gitpod.cloud
* [content-service] Fix: emit fromBackup stats
Tool: gitpod/catfood.gitpod.cloud
* Update components/ws-manager-api/core.proto
Co-authored-by: Filip Troníček <filip@gitpod.io>
---------
Co-authored-by: Filip Troníček <filip@gitpod.io>
2025-02-26 14:34:12 -05: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
iQQBot
b77f687492
[ws-daemon] start backup even pod still report the container is running after 5 minutes ( #20382 )
2024-11-22 05:13:59 -05:00
Gero Posmyk-Leinemann
99cc66b7cf
[ws-manager] Re-create workspace pods on rejection ( #20243 )
...
* [ws-manager] Re-create workspace pods (incl. test)
* [gpctl] Fix "workspaces list"
* [ws-daemon, ws-manager] Review comments, logging cleanups and ordering fix
* [dev/rejector] Add the tool we use to test PodRejection under "dev"
* [bridge] Log nested status shape (and properly scrubbing it)
2024-11-15 07:28:54 -05:00
iQQBot
66a1ba00d4
Get more insights on workspace image ( #20356 )
...
* 1
* 1
* 1
* add timeout ctx
* addressed feedback
2024-11-12 08:25:51 -05:00
Gero Posmyk-Leinemann
b75162c5bb
[ws-manager-mk2] Make WorkspaceRunningCondition.LastTransitionTime stable ( #19698 )
2024-05-03 20:53:43 +08: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
Wouter Verlaek
c5ba13cdf2
[ws-daemon] Take backup once container has stopped ( #19411 )
2024-02-09 17:02:51 +02:00
Kyle Brennan
7e085ed5ad
[ws-manager-api] remove unused SSHKey field ( #19287 )
...
* [ws-manager-api] remove SSHKey field
It's no longer needed
* Ran kubebuilder `make generate`
* Ran kubebuilder's `make manifests`
* Update readme
* Cleanup
2024-01-03 17:00:41 +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
Manuel Alejandro de Brito Fontes
453bf6ea4a
Refactor configuration of workspace SSH key ( #19059 )
...
* Refactor configuration of workspace SSH key
* Update go modules
* Update CRD
* only add SSH Key to workspace CR (#19130 )
---------
Co-authored-by: Pudong <tianshi8650@gmail.com>
2023-11-24 15:55:01 +02:00
Christian Weichel
9331ac5507
Add storage metadata to workspace CR ( #19044 )
...
* Adding volume fields to workspace CRs
* Move workspace volume details to status
* Add VolumeAttachRequest condition
* Add throughput condition (#18982 )
---------
Co-authored-by: Alejandro de Brito Fontes <aledbf@gmail.com>
Co-authored-by: Thomas Schubart <24721048+Furisto@users.noreply.github.com>
2023-11-09 14:06:47 +02:00
Thomas Schubart
17f7b6c2a7
Add throughput condition ( #18982 )
2023-10-30 13:00:37 +02:00
Pudong
81ff3d16e4
[ws-manager-mk2] redact log ( #18906 )
...
* update to logrusr v4
* Add DeepCopyStruct to scrubber
* use DeepCopyStruct to scrub log
* mark wrokspace.stauts.url redact
2023-10-16 13:48:23 +03:00
Manuel Alejandro de Brito Fontes
258651f923
Filter subscriber reconciler events (v2) ( #18696 )
...
* Filter subscriber reconciler events (v2)
* Ignore LastActivity
2023-09-12 20:54:52 +02:00
Wouter Verlaek
2ac49194c6
Revert "Filter subscriber reconciler events ( #18660 )" ( #18694 )
...
This reverts commit 9470fb880093522021c1eaeecfb0373d087c39c3.
2023-09-11 11:28:09 +02:00
Manuel Alejandro de Brito Fontes
9470fb8800
Filter subscriber reconciler events ( #18660 )
...
* Filter subscriber reconciler events
* Notify changes in the port visibility
* Switch to reflect.DeepEquals
* Address feedback
2023-09-06 16:33:04 +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
bf3d548266
[ws-manager-mk2] Scrub status fields, add vscode launch.json ( #18595 )
...
* [ws-manager-mk2] Scrub status fields, add vscode launch.json
* Fix scrubber panic on unexported pointer
2023-08-25 13:00:51 +02:00
Manuel Alejandro de Brito Fontes
8c6d8e28f3
Update dependencies ( #18362 )
...
* Update k8s dependencies to v1.27.3
* Update opencontainers/runtime-spec to v1.1.0
* Update controller runtime to v0.15.0
* Update go modules
* Fix build
* Cleanup
* Fix ws-manager e2e tests
2023-07-27 23:34:29 +08:00
Wouter Verlaek
cbc8b38a91
[ws-daemon] Add OWI to logs ( #18017 )
2023-06-22 21:44:12 +08:00
Thomas Schubart
20164cbb4a
[wsman-mk2] Simplify condition checking ( #17961 )
2023-06-17 22:59:07 +08:00
Thomas Schubart
e4688a23a7
[ws-manager-mk2] Configure max workspace lifetime ( #17767 )
...
* [wsman-api] Add maximum lifetime to workspace request
* [wsman-api] Add maximum lifetime to workspace CRD
* [wsman] Set maximum lifetime during workspace start
* [wsman] Check custom max lifetime
* [wsman-api] Fix conflicting raw proto
* [wsman-mk2] Test custom max lifetime
2023-06-12 19:25:02 +08:00
Kyle Brennan
1a7c50a8b5
[ws-manager-mk2] support storage quotas ( #17606 )
...
* [ws-manager-mk2] add support for storage quotas
This way, on workspace create, `ws-daemon` can set XFS limits for `/workspace`
* [preview] set smaller /workspace limits
This way we don't have to spend more on preview environments.
* [ws-daemon] warn when xfs is missing
* Partial revert of "Revert "[ws-daemon] Restart IWS if ws-daemon is restarted (#17552 )" (#17645 )"
This reverts commit e082b7f48885199013df927d3c71c62935f74047.
It avoids reverts on notify.go and workspace_provider.go.
* [ws-daemon] log when handling running workspaces
* [test] add test for xfs quotas
2023-05-19 20:49:53 +08:00
Pudong
176393a0c8
Add support to forward https protocol port ( #17644 )
...
* add support to forward https protocol port
* Update components/ws-proxy/pkg/proxy/routes.go
Co-authored-by: Kyle Brennan <kyle@gitpod.io>
---------
Co-authored-by: Kyle Brennan <kyle@gitpod.io>
2023-05-19 15:22:53 +08:00
Wouter Verlaek
da50b8ceb6
[ws-manager-mk2] Cleanup and fail workspaces when node disappears ( #17599 )
...
* [ws-manager-mk2] Cleanup and fail workspaces when node disappears
* Cache nodes
* Fix test, and reconcile ws when node gets deleted
2023-05-15 22:53:00 +08:00
Wouter Verlaek
bfa7b301b7
[ws-manager-mk2] Fix headless task failures ( #17429 )
2023-04-28 19:26:36 +08:00
Wouter Verlaek
06ec36b564
[ws-manager-mk2] Refactor metrics with EverReady condition ( #17114 )
...
* [ws-manager-mk2] Refactor metrics with EverReady condition
* Fix test, default failure message
* Add stop reason metric
2023-04-08 11:57:48 +02:00
Pudong
24c401ab78
[ws-manager-mk2] support custom closed timeout ( #16988 )
...
* [ws-manager-mk2] support custom closed timeout
* Default to the RegularWorkspace timeout
* remove code
---------
Co-authored-by: Wouter Verlaek <wouter@gitpod.io>
2023-03-31 20:05:40 +02:00
Wouter Verlaek
c14a25cfdf
[ws-manager-mk2] Report content init/dispose failures ( #17015 )
2023-03-27 17:22:25 +02:00
Thomas Schubart
c64c4f3530
[ws-manager-mk2] Rely on controller concurrency mechanism for content init and backup ( #16823 )
...
* [wsman-mk2] Replace in memory state handling
* [ws-daemon] Operate on latest workspace CR
* [ws-daemon] Review comments
2023-03-23 16:31:17 +01:00
Thomas Schubart
42a3602fce
[ws-manager-mk2] Emit events for workspaces and snapshots ( #16907 )
...
* [wsman-mk2] Emit workspace events
* [installer] Permissions for events
* [ws-man-mk2] Emit snapshot events
* [installer] Update render tests
* [wsman-mk2] Include review comments
2023-03-20 13:59:12 +01:00
Wouter Verlaek
3a561bf274
[ws-manager-mk2] Check empty ns, delete secrets before finalizer ( #16900 )
2023-03-20 11:32:12 +01:00
Thomas Schubart
ace513ad7e
[ws-manager-mk2] Refactor workspace status conditions ( #16896 )
...
* [wsman-mk2] Refactor conditions
* [wsman-mk2] Specify reason
2023-03-20 11:10:12 +01:00
Thomas Schubart
2c259c4dc8
[ws-manager-mk2] Support public SSH keys ( #16413 )
2023-03-13 14:50:49 +01:00
Wouter Verlaek
311da7324c
[ws-manager-mk2] Add duration validation ( #16687 )
2023-03-06 18:39:04 +01:00
Wouter Verlaek
bec87139a9
[ws-manager-mk2] Remove headless field ( #16611 )
2023-03-01 12:14:59 +01:00
Wouter Verlaek
df3e15a1d4
[ws-manager-mk2] Remove headless from status ( #16530 )
2023-02-23 17:36:53 +01:00
Thomas Schubart
116a5b97b2
[ws-manager-mk2] Support workspace snapshots ( #16471 )
...
* [ws-manager-mk2] Scaffold snapshot CRD
* [ws-mangaer-mk2] Generate snapshot type
* [ws-manger-mk2] Provide snapshot endpoint
* [ws-daemon] Handle snapshots
* [ws-manager-mk2] Harmonize imports
* [ws-manger-mk2] Set owner reference
* [installer] Install snapshot CRD
* [ws-manager-api] Fix descriptions
* [ws-manager-mk2] Review comments
- Name controller
- Return early in case of error
- Reduce scope of permissions
2023-02-23 16:45:53 +01:00
Wouter Verlaek
00229da4af
[ws-manager-mk2] Add finalizer on workspace, handle deletion
2023-02-15 11:27:19 +01:00
Thomas Schubart
ad3b05c064
[ws-manager-mk2] Support system environment variables
2023-02-15 08:22:19 +01:00
Wouter Verlaek
e62c773362
[ws-manager-mk2] Aborted condition, grace period
2023-02-14 12:04:19 +01:00
Wouter Verlaek
65d5cb2d88
[ws-manager-mk2] Cleanup EverReady condition
2023-02-14 11:28:19 +01:00
Wouter Verlaek
093338cca3
Increase envtest start/stop timeout
2023-02-08 16:47:46 +01:00
Wouter Verlaek
a4e0b11fe2
[ws-manager-mk2] Fix and enable controller tests
2023-02-08 16:47:46 +01:00
Wouter Verlaek
971c3d6412
[ws-manager-mk2] Implement MarkActive
2023-02-07 10:51:45 +01:00
Thomas Schubart
382bde1767
[ws-manager-mk2] Switch to lru cache
2023-01-30 23:22:38 +01:00
Thomas Schubart
a485cb69a9
[ws-manager-mk2] Ensure metrics are only counted once
2023-01-30 23:22:38 +01:00
Thomas Schubart
a80ee4a26b
[ws-manager] Delete workspace CR on stop
2023-01-30 14:59:37 +01:00
Thomas Schubart
f1454d3994
[ws-daemon] Only handle k8s operations in controller
2023-01-30 14:59:37 +01:00