36 Commits

Author SHA1 Message Date
iQQBot
52a7727b4f
[node-labeler] Refactor node labeling to use taints instead of labels (#20652)
* [node-labeler] Refactor node labeling to use taints instead of labels

* [agent-smith] Add toleration to daemonset

* Add workspace component tolerations to various Gitpod components if it running in Full installation

* Apply suggestions from code review

Co-authored-by: Kyle Brennan <kyle@gitpod.io>

* Update components/node-labeler/cmd/run.go

Co-authored-by: Kyle Brennan <kyle@gitpod.io>

---------

Co-authored-by: Kyle Brennan <kyle@gitpod.io>
2025-03-11 03:30:39 -04:00
Gero Posmyk-Leinemann
76781bf322
[dev] Update workspace libraries to match kubernetes (containerd, runc, buildkit) (#20526)
* [workspace] Set lib versions: containerd to 1.6.36, runc 1.1.14 and buildkit to 0.12.5

Reasoning: https://linear.app/gitpod/issue/CLC-982/update-containerd-to-latest-patch-16x-k8s-and-runc-libs-in-gitpod-mono#comment-d5450e2c

* [golangci] Remove superfluous notlint and checks

* [image-builder-mk3] Fix incomplete tests where a library made the field "mediaType" non-optimal

    Original change: https://github.com/opencontainers/image-spec/pull/1091

* [docker] Switch from github.com/docker/distribution/reference to github.com/distribution/reference

* [ws-daemon] Internalize libcontainer/specconv because it got dropped between runc 1.1.10 and 1.1.14
2025-01-20 09:32:10 -05: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
Manuel Alejandro de Brito Fontes
692963d2e9
Update containerd and buildkit go modules (#19376)
* Update containerd and buildkit go modules

* Fix build

* Fix typecheck errors

---------

Co-authored-by: Thomas Schubart <thomas@gitpod.io>
2024-02-01 20:22:44 +02:00
Nandaja Varma
38681eb1db
[installer] Use experimental config properly for openvsx-proxy (#19368) 2024-01-31 00:59:07 +02:00
Nandaja Varma
5c59b896d2
[installer] Fix wrong env var name for proxy settings (#19367) 2024-01-30 20:11:06 +02:00
Nandaja Varma
81b991cc2c
[openvsx-proxy] Pass in proxy settings as env vars (#19364)
* [openvsx-proxy] Pass in proxy settings as env vars

* remove unnecessary env var
2024-01-30 15:23:06 +02:00
Manuel Alejandro de Brito Fontes
f27b16ee31
Add support for pod disruption budget (#18547) 2023-08-25 22:06:51 +02:00
Anton Kosyakov
dfebcc04d1
[openvsx-proxy] remove unused property (#18032)
clean up of Config.Domain usage
2023-06-26 16:27:50 +08:00
Anton Kosyakov
ce63317578
[configcat] fix IDE-185: user internal route (#18029) 2023-06-23 16:33:13 +08:00
Manuel Alejandro de Brito Fontes
97f8d4b802
Ensure the spread of pods on different nodes (#16810)
* Ensure the spread of pods on different nodes

* Replace string ClusterFirst

* Replace Always string in DNSPolicy

* Fix registry-facade affinity

* Fix ws-proxy affinity

* Address feedback

* Update golden files
2023-03-15 10:21:07 +01:00
Pudong Zheng
739cae924f [installer]: deprecate the experimental IDE configuration 2023-02-01 09:20:39 +01:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Tarun Pothulapati
c2eb0c15d1 [installer] manually set allowPrivilegeEscalation to false
This PR manually sets the `allowPrivilegeEscalation` container
config to false where we don't need extra capabilities. This
is needed as not setting this explicitely could mean that
it could still be `true` based on other settings.

This also helps us future proof on any behaviour changes around
this.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-12-05 06:28:15 -03:00
Tarun Pothulapati
2763de8c39 [openVSXProxy] Mark the usage of PVC optional
Fixes https://github.com/gitpod-io/gitpod/issues/14529

Currently, OpenVSXProxy is the only non-optional component
that needs PVC's to get things working. The usage of a PVC
in AWS reference architecture, means that components can't
get restarted in a different zone anymore as PVC's with EBS
are specific to a zone.

As EKS reference architecture does not enable any other
component that uses PVC's (i.e minio), This is a problem
specific to `OpenVSXProxy`.

By disabling this, OpenVSXProxy's redis now will have
lost the cache once a restart occurs which does not
seems like a big deal for self-hosted customers.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-11-21 04:04:50 -03:00
Pudong Zheng
a4ffeb8cb5 [openvsx-proxy] support dynamic upstream url 2022-11-14 13:18:44 +02:00
Manuel Alejandro de Brito Fontes
64b4d6fcf9 Fix typecheck errors 2022-08-23 08:18:39 +02:00
Simon Emms
2fd3dd3586 [installer]: remove the custom labels from the selector labels 2022-08-09 04:16:53 -03:00
Aleksandar Aleksandrov
f235d61f74 add kube-rbac-proxy container to openvxs-proxy 2022-07-28 06:00:23 -03:00
Manuel Alejandro de Brito Fontes
14095f470b Refactor configuration of localhost address, metric and debug ports 2022-07-23 11:19:18 -03:00
Simon Emms
8fad588e6b [installer]: add customization functions to components 2022-06-24 17:02:33 +05:30
Mads Hartmann
7b68fb4a27 Use slices instead of maps for service ports to control ordering 2022-05-30 20:14:48 +05:30
Andrew Farries
82a229a98d Add tests for proxy services
Ensure that annotations added through the experimental config are
present on the rendered services.
2022-05-05 17:13:20 +05:30
Andrew Farries
92329a8803 Add experimental config sections
To allow the proxies to have extra annotations on their service.
2022-05-05 17:13:20 +05:30
Andrew Farries
99eca3198b Refactor: Move proxy services into their own files 2022-05-05 17:13:20 +05:30
Andrew Farries
674db36fbb Make resources configurable for all components
Use the common.ResourceRequirements function from the parent commits,
passing in the existing defaults.
2022-04-28 20:04:14 +05:30
Andrew Farries
1dd58fc461 Make StatefulSet replicas configurable 2022-04-26 13:14:38 +05:30
Simon Emms
948ae5192b [installer]: add DropImageRepo functionality to RepoName
This moves the ImageName and RepoName functions to the RenderContext
struct.
2022-04-21 18:26:33 +05:30
mustard
977ca586a7 [installer] reduce openvsx-proxy request memory 2022-04-21 15:00:33 +05:30
Andrew Farries
3fdd2d9754 Rename common.Affinity to NodeAffinity 2022-04-20 02:48:32 +05:30
mustard
45c1afb185 [installer] fix redis pvc name incorrect 2022-04-19 00:07:31 +05:30
Simon Emms
55d1e4b376 [installer]: use fully qualified image name for redis image 2022-04-13 21:08:26 +05:30
Gero Posmyk-Leinemann
c9bb2d8185 [installer] open-vsx: configure redis 2022-04-12 17:06:25 +05:30
Manuel Alejandro de Brito Fontes
89105f8628 Update signatures due to k8s v1.23 changes 2022-03-03 18:46:10 +05:30
Tarun Pothulapati
d9b9f3087b installer: make OpenVSX URL configurable
Fixes #8224

This PR adds a new `OpenVSX` object into the top-level `Config` field
to support configurations of the `openvsx-proxy` component. Currently,
Only `URL` field is present. This is needed to support air-gap
instlalations where people are expected to host their own open-vsx.

This config is top-level and not under the workspace or IDE as this
configures the proxy, but not the IDE.

The URL is validated by using the validate go tags.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-02-22 18:32:02 +05:30
Simon Emms
4820e804bb [installer]: move to /install 2022-02-22 17:03:02 +05:30