[ws-manager-bridge] Add application_cluster
field to cluster service List
RPC response message
#13940
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Context
As part of #9198 we want to start syncing the
d_b_workspace_cluster
table withdb-sync
.Currently, the table differs between US and EU regions because each table contains only the data relevant to that region. For example, in the EU table, the
eu70
workspace cluster is marked asavailable
and theus70
cluster iscordoned
. In the US clustereu70
iscordoned
andus70
isavailable
.In order to sync the table we need to get to a point where there is no difference in the data in the table between EU and US regions.
To do that we will introduce a new field in the table called
applicationCluster
which records the name of the application cluster to which the record belongs. Thus, for each workspace cluster there will be two rows in Gitpod SaaS:Effectively the new
applicationCluster
column gives the table an extra dimension so that we can combine both tables (EU and US) into one.#13722 added the column to the table and made
gpctl
fill the value whengpctl register
ing a new workspace cluster. The value is taken from theGITPOD_INSTALLATION_SHORTNAME
environment variable inws-manager-bridge
.Add a new
applicationCluster
field to theListResponse
message in thews-manager-bridge
ClusterService
RPC service and populate the new field in the server implementation.Related Issue(s)
Part of #9198 and #13800
How to test
Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide