-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[server] Use content-service #3288
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
Conversation
95c86b1
to
15d59d9
Compare
@csweichel: This PR is ready for a review. Probably too late for the March release, though. |
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.
It's nice to see this stuff finally move out of server
e03b9e7
to
65af066
Compare
e64d463
to
43431cf
Compare
9bb7e7e
to
07bc6c0
Compare
a073584
to
7edd238
Compare
@@ -203,8 +166,16 @@ export const productionContainerModule = new ContainerModule((bind, unbind, isBo | |||
|
|||
bind(TermsProvider).toSelf().inSingletonScope(); | |||
|
|||
const contentServiceClient = new ContentServiceClient("content-service:8080", grpc.credentials.createInsecure()) |
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.
Maybe pedantic, but I'd love to see the address
as part of the env with this value as default, even if not used yet by helm.
@@ -54,17 +54,6 @@ export class Env extends AbstractComponentEnv { | |||
|
|||
readonly sessionMaxAgeMs: number = Number.parseInt(process.env.SESSION_MAX_AGE_MS || '259200000' /* 3 days */, 10); | |||
|
|||
readonly storageClient: string = process.env.GITPOD_STORAGE_CLIENT || 'gcloud'; |
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.
❤️
} | ||
}); | ||
}); | ||
try { |
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.
This is redundant. Directly awaiting
the new Promise<Delete...
is enough
}); | ||
}); | ||
try { | ||
await grcpPromise; |
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.
same as above.
} | ||
}); | ||
}); | ||
try { |
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.
basically same as above.
} | ||
}); | ||
}); | ||
try { |
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.
same as above
} | ||
}); | ||
}); | ||
try { |
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.
same as above
} | ||
}); | ||
}); | ||
try { |
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.
same as above
/werft run 👍 started the job as gitpod-build-corneliusludmann-server-move-all-3144.83 |
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.
Awesome. Thank you!
Works like it says on the tin.
7edd238
to
ad72008
Compare
ad72008
to
06bc3e7
Compare
This PR removes the dependency to the remote storage configuration from the server component. Instead, it uses the content-server component.
Fixes #3144
How to test
The following functions are affected and should be tested with MinIO and GCP storage:
update d_b_workspace set softDeletedTime = '2020-01-01 01:30:30';
, here for all workspaces; wait for max. 30 min. to let the GC run (see server log), verify in MinIO or GCP storage that the workspace backup is gone)/werft storage=gcp