-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes to install workspace components to GKE with InCluster dependencies #6323
Conversation
d0b8661
to
e16e081
Compare
Codecov Report
@@ Coverage Diff @@
## main #6323 +/- ##
==========================================
- Coverage 19.04% 17.49% -1.55%
==========================================
Files 2 23 +21
Lines 168 3006 +2838
==========================================
+ Hits 32 526 +494
- Misses 134 2417 +2283
- Partials 2 63 +61
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
cd8d53f
to
9d9a1d3
Compare
Can you give me another cluster to test? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think some recent commit broke the code:
gitpod /workspace/gitpod/installer $ go run . render --config example-config.yaml | kubectl apply -f -# github.com/gitpod-io/gitpod/installer/pkg/components/content-service
pkg/components/content-service/objects.go:14:65: cannot use nil as type bool in argument to common.GenerateService
# github.com/gitpod-io/gitpod/installer/pkg/components/dashboard
pkg/components/dashboard/objects.go:13:65: cannot use nil as type bool in argument to common.GenerateService
# github.com/gitpod-io/gitpod/installer/pkg/components/server
pkg/components/server/objects.go:16:65: cannot use nil as type bool in argument to common.GenerateService
# github.com/gitpod-io/gitpod/installer/pkg/components/image-builder-mk3
pkg/components/image-builder-mk3/objects.go:16:65: cannot use nil as type bool in argument to common.GenerateService
Yeah, my bad. I'll get this fixed before out 9:30BST call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes are humongous. Can you make this 3 commits with different concerns? I can review each commit individually.
NVM the 8 commits are good enough
2003367
to
a4cb89f
Compare
Set the versions to `main.1640`, which is currently what is deployed to production
a4cb89f
to
f12552c
Compare
9a66833
to
46ee3c1
Compare
The cluster configuration is designed for components that are always installed to the cluster. These will mostly be security related rather than functional. This also introduces the concept of common objects that are installed regardless of the installation type.
…P was always set to None
This now installs the workspace components to a cluster using an InCluster database and registry
46ee3c1
to
7f6b292
Compare
/lgtm |
LGTM label has been added. Git tree hash: def100f1c468b05432cb6d58c2930565587c0046
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csweichel Associated issue: #6276 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
These are the bugfixes required to get the application deployed to a GKE cluster. As this was getting large, this has been split into Workspace and Meta component
This has made a change to the
config
file as well:workspace.runtime.containerdSocket
(with default value). This is necessary as containerd can be in different locations (eg, in Azure)Probe
in theWorkspaceTemplates
. This won't be defined in most instances, but is necessary for completionAlso, I've changed how the DB init scripts work. I've removed the scripts
00-testdb-user.sql
and01-create-user.sql
replaced with the Helm configuration for creating a username/database. I don't think this will actually present a functional change, but happy to have a conversation about this - this appears only to be run with InCluster databases.Related Issue(s)
Fixes #6276
How to test
gcloud container clusters get-credentials sje-europe-west2-primary-gke --region europe-west2 --project sje-self-hosted-playground
(I'm also using this cluster)go run . render --config example-config.yaml | kubectl apply -f -
watch kubectl get pods
and watch the pods come to life - this takes ~3 minsRelease Notes
Documentation