-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[server] Add and use supervisor image config #6669
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6669 +/- ##
==========================================
- Coverage 32.74% 6.00% -26.74%
==========================================
Files 122 12 -110
Lines 22193 1116 -21077
==========================================
- Hits 7266 67 -7199
+ Misses 14309 1048 -13261
+ Partials 618 1 -617
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@corneliusludmann We haven't really introduced the installer to the teams yet, but it would probably make sense to update that part accordingly. |
Thanks for the very useful hint! If you don't object, I would like to handle this in a separate PR that also updates other missing changes in the installer: #6700 |
9310467
to
259a3a1
Compare
Hmm, maybe I got it wrong, but it always reports
here, no matter what I put in as |
Thanks for carefully testing, @JanKoehnlein! It took me what felt like an eternity of debugging until I figured out what's wrong here. It seems the code is correct but the “How To Test” is a bit tricky. According to the logs, the server config has been reloaded at the time you tested this PR a couple of times but the supervisor image was always
And now comes the tricky part. Version TL;DR: Using a different Docker version tag does not necessarily mean that you get another supervisor app binary with a different logged version. However, use these 2 tags and you should get different versions logged:
|
@gitpod-io/engineering-meta Could someone finish the review please? 🙏 |
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.
Cannot test myself bc of cert issues but:
- I see others have tested before
- I understand the mechanisms at play thx to @corneliusludmann nice explanation
- code LGTM
👍
LGTM label has been added. Git tree hash: 29f1dcf44fb9215a062737f59983525ac37cb839
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: geropl Associated issue: #6512 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
This PR adds the supervisor image to the
server-ide-configmap
and passes this value to the registry facade. That allows to change the supervisor image just by altering the config and thus allows to deploy a new supervisor image by the IDE team on its own.Related Issue(s)
Fixes #6512
This aspect is still not solved: #6512 (comment). That is why this PR does not close the issue yet.How to test
jsonPayload.serviceContext.version
has the version.commit-a7166daa720e8c05c1f200257f567646d427b79b
. No server restart necessary.Note: The version in the configmap can differ from what it is in the logs because images can have multiple tags. E.g. when you have
commit-93104671b75c9f81b2cc8b5a542dc8680e36928f
in the configmap, it's logged as versioncommit-20e06321092f0e658622332880889ddda2b77f59
but you can see in the registry that both are valid tags for the same image.Release Notes