477 Commits

Author SHA1 Message Date
JenTing Hsiao
95ec04a005 [installer] add node get/list permission to ws-manager
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-14 20:03:01 +02:00
Tarun Pothulapati
eefee5515a [local-preview] show DOMAIN in the output
This PR updates the `local-preview` to printout
the Domain of the Gitpod Instance for users to
access.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-07-13 16:43:00 +02:00
Gero Posmyk-Leinemann
d1c412edc2 [server] Hook up usage API 2022-07-13 12:09:00 +02:00
Nandaja Varma
969cb86c25 Splitting the test executions 2022-07-13 10:39:00 +02:00
Simon Emms
f992eaf4a5 [kots]: add node CPU/memory check tests to workspace node only 2022-07-13 09:58:00 +02:00
Simon Emms
6ee0912acb [kots]: add monitoring graphs 2022-07-13 09:54:00 +02:00
Milan Pavlik
48411d7cfb [usage] Workspace Pricer uses config 2022-07-13 08:49:59 +02:00
Pavel Tumik
de4e346af8 [installer] improve ws-manager config 2022-07-13 07:15:59 +02:00
Pavel Tumik
0fe39e89c6 [installer] improve ws-proxy configmap 2022-07-13 07:09:59 +02:00
Andrea Falzetti
66907469ed [code] Update stable to 1.69.1 2022-07-12 23:49:59 +02:00
Tarun Pothulapati
a65c946432 [local-preview] Support 127-0-0-1.nip.io for DOMAIN
Due to the way docker works in non-native platforms, It is
very hard to have a consistent experience across all platforms
as we can't just use the [docker bridge netwrok IP's in non-native
platforms](https://docs.docker.com/desktop/networking/). This means that
users have to search their Host IP, and use It
to get up and working [which we tried, but understand that it's not
a good UX](https://github.com/gitpod-io/website/pull/2349).

But users can use `127-0-0-1.nip.io` as the DOMAIN which resolves to
 `127.0.0.1` and is available in all platforms as its `localhost`. This
works well and good for all user communication
but internal communication fails as `127-0-0-1.nip.io` for them
is something else.

So, This PR fixes that by adding new coredns
`gitpod.db` coredns config essentially asking to route all
`127-0-0-1.nip.io` to `proxy.default.svc.cluster.local`. [As k3s does
not yet support overriding coredns config in a sane-way](https://github.com/k3s-io/k3s/issues/462)
,We instead skip the default coredns by adding `coredns.yaml.skip` file,
and adding our own `custom-coredns.yaml` which is just plain
`coredns.yaml` that comes with `k3s`, added with gitpod config.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-07-12 04:07:58 +05:30
mustard
c5ffdcd8ce [code] upgrade stable code with ports onOpen fix 2022-07-12 01:36:58 +05:30
Simon Emms
cf7d6de5b0 [installer]: add test for customization of proxy service
This was raised as a specific issue in #11106, but cannot recreate this
issue. Test added to ensure that no regression happens.
2022-07-11 17:39:58 +05:30
Andrew Farries
f166459010 Remove json key from test expectation 2022-07-11 13:50:58 +05:30
Andrew Farries
f3fe54c907 Add networkpolicy for the usage component 2022-07-11 13:50:58 +05:30
Andrew Farries
30a309a45f Add service for usage component
Add a service for the gRPC port exposed by the usage component.
2022-07-11 13:50:58 +05:30
Andrew Farries
68d95a5734 Add gRPC config to usage configmap 2022-07-11 13:50:58 +05:30
Tarun Pothulapati
7e31087f7b [local-preview] Differentiate btw Gitpod starting and running
Currently, It takes a while before Gitpod is ready even though
the status says `Gitpod is running` as its not checking for
readyness.

This PR updates the output to separate btw `starting` and `running`.
`Gitpod is running` message is showed only when we see that
the `gitpod-telemetry-init` job has run which happens when
all pods are ready.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-07-11 13:40:58 +05:30
Andrew Farries
c83333fc3a Add usage-api component
Add Placeholder .proto files and script to generate Go client/server
SDKs.

Adapted from the `public-api` component.
2022-07-08 16:25:55 +05:30
Andrea Falzetti
c719aa9f9d [code] Update stable to 1.69 2022-07-08 07:25:55 +05:30
Pavel Tumik
a8b550aee4 [installer] fix ws-daemon config 2022-07-08 01:02:54 +05:30
Nandaja Varma
9ee27b8a48 Fix the installer test issues 2022-07-07 15:15:54 +05:30
Pavel Tumik
f1e99b7da2 use with experimental
Co-authored-by: Cornelius A. Ludmann <cornelius@gitpod.io>
2022-07-06 23:25:53 +05:30
Pavel Tumik
c63168ea80 [installer] allow to specify agent smith config 2022-07-06 23:25:53 +05:30
Thomas Schubart
88e5beb8d6 [bridge] Regularly check for class updates 2022-07-06 23:15:53 +05:30
Christian Weichel
3518346650 [ws-manager] Ship env vars as secret 2022-07-06 19:22:53 +05:30
Simon Emms
1b1248d2ab [kots]: add proxy service type to advanced options 2022-07-06 16:58:53 +05:30
Simon Emms
41ad209c4b [kots]: rename additional options to advanced options 2022-07-06 16:58:53 +05:30
Simon Emms
cd03b24d3c [installer]: move proxy loadbalancer annotations 2022-07-06 16:58:53 +05:30
Simon Emms
86c887cc6e [installer]: deprecate the experimental proxy service type config 2022-07-06 16:58:53 +05:30
Simon Emms
da43bad0c1 [installer]: add ability to deprecate a config parameter 2022-07-06 16:58:53 +05:30
mustard
adc5f2ae3d [code] update stable to 1.68.2 with conn telemetry 2022-07-06 14:52:53 +05:30
Nandaja Varma
0419dfef74 [installer] Fix the upgrade tests and use annotations from JSON
EKS clusters implement `LoadBalancer` type services with ELBs; when an
EKS cluster is destroyed via terraform these ELBs are not automatically
deleted. The continued presence of these ELBs will remain attached to
the associated subnets and prevent the subnets and VPC from being
destroyed.

This commit resolves the issue by explicitly deleting the `gitpod`
namespace (and pausing to allow the ELBs to be removed) before
continuing.
2022-07-06 14:51:53 +05:30
Simon Emms
57cb39f6c6 [kots]: add registry to preflight and support checks
This checks a connection can be made, based upon the configuration
given.
2022-07-06 14:35:53 +05:30
Manuel Alejandro de Brito Fontes
05642003d6 [ws-daemon] Add plugin to set custom process priorities 2022-07-06 13:39:53 +05:30
Manuel Alejandro de Brito Fontes
ea6ade104f Update containerd and docker dependencies 2022-07-06 13:31:53 +05:30
Pavel Tumik
fdd7098ae4 [installer] fix workspace template generation 2022-07-06 12:43:53 +05:30
Simon Emms
2946c9f528 [kots]: add firewall check for the pull registry 2022-07-05 22:44:52 +05:30
Simon Emms
b8cee4b58c [installer]: set a stable password for messagebus
Both the password and the erlang cookie secret
2022-07-05 20:06:53 +05:30
JenTing Hsiao
856371178d Revert "Update k8s dependencies to v0.24.2"
This reverts commit 2911bc3283c2b79aacde0d16bce056de62eb696b.
2022-07-05 11:11:01 +02:00
JenTing Hsiao
3bdeca9533 Revert "Update helm to v3.9.0"
This reverts commit 5083f6daffb7cab3c1f0b2051389e22bcfa1651d.
2022-07-05 11:11:01 +02:00
JenTing Hsiao
3100c5995e Revert "Update containerd to v1.6.6"
This reverts commit 6dd018220d18bed9cd1a0bb58bb08178016475a7.
2022-07-05 11:11:01 +02:00
JenTing Hsiao
b1fd9b6703 Revert "Update docker dependencies"
This reverts commit 02831a9e9e021b2d36942f29c2a64a3531c8e06d.
2022-07-05 11:11:01 +02:00
JenTing Hsiao
4c3ae4ba9a Revert "Remove deprecated test (because gsutil)"
This reverts commit 5cac340917b8bd35b2b31f89f8e452f23c0e1c5a.
2022-07-05 11:11:01 +02:00
Tarun Pothulapati
79f73129fa [preview] run the telemetry job right after gitpod is ready
This PR updates the `entry-point.sh` to run a parallel step
that waits for the gitpod pods to be ready, and manually executes
the cronjob once its necessary.

This is necessary as our telemetry `cronjobs` are only ran
daily in the midnight, and we can't expect this schedule to work
for local previews as they are short lived.

example data that we get:

```
client.Track(&analytics.Track{
  UserId: "334c379a-afee-4882-ba44-fbd7dfc0a8b0",
  Event: "Installation telemetry",
  Properties: map[string]interface{}{
    "customerID": "",
    "platform": "local-preview",
    "totalInstances": 0,
    "totalUsers": 0,
    "totalWorkspaces": 0,
    "version": "tar-preview-tel-init.4",
  },
})
```

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-07-05 14:13:52 +05:30
Manuel Alejandro de Brito Fontes
5cac340917 Remove deprecated test (because gsutil) 2022-07-05 03:37:52 +05:30
Manuel Alejandro de Brito Fontes
02831a9e9e Update docker dependencies 2022-07-05 03:37:52 +05:30
Manuel Alejandro de Brito Fontes
6dd018220d Update containerd to v1.6.6 2022-07-05 03:37:52 +05:30
Manuel Alejandro de Brito Fontes
5083f6daff Update helm to v3.9.0 2022-07-05 03:37:52 +05:30
Manuel Alejandro de Brito Fontes
2911bc3283 Update k8s dependencies to v0.24.2 2022-07-05 03:37:52 +05:30