-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Use public api in supervisor #15112
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
Use public api in supervisor #15112
Conversation
1f56826
to
333aa7d
Compare
333aa7d
to
e30a3d5
Compare
started the job as gitpod-build-hw-pub-sup-impl.10 because the annotations in the pull request description changed |
a3bb05c
to
bd92a8a
Compare
60bb57d
to
bf16603
Compare
bf16603
to
c5bb79a
Compare
c5bb79a
to
84ed1a0
Compare
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.
/hold
generally looks good, please have a look at comments, and merge when you are ready
} | ||
|
||
func (service *Service) tryConnToPublicAPI() { | ||
endpoint := fmt.Sprintf("api.%s:443", service.cfg.Host) |
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.
[nit] Supply this as config to the service, if possible.
Host: query.Host, | ||
}) | ||
if err != nil { | ||
log.WithField("method", "GetGitToken").WithError(err).Error("failed to call PublicAPI") |
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.
You can add these logs as a middleware. See common-go/grpc
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.
We will address this in follow-up PR
84ed1a0
to
d7ce592
Compare
Co-authored-by: mustard <[email protected]> Co-authored-by: Anton Kosyakov <[email protected]> Co-authored-by: Jean Pierre <[email protected]> Co-authored-by: iQQBot <[email protected]>
d7ce592
to
4da2cfc
Compare
Addressed parts of comments and tested again, could you review? 🙏 @easyCZ |
Description
How to test
We tested the following cases:
false
/true
from workspace startkubectl scale deploy/public-api-server --replicas=0
supervisor_persist_serverapi_channel_when_start
enabled
disabled
Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh