-
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
installer: make OpenVSX URL configurable in the openvsx proxy #8266
Conversation
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.
What happens if you run it with a config that doesn't have the openVSX
object created? I'm just thinking about user's who create a new installation without updating their config
Codecov Report
@@ Coverage Diff @@
## main #8266 +/- ##
=========================================
- Coverage 12.31% 7.59% -4.73%
=========================================
Files 20 31 +11
Lines 1161 2172 +1011
=========================================
+ Hits 143 165 +22
- Misses 1014 2004 +990
+ Partials 4 3 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
In my opinion, we should make all config values that have sensible default values optional in the config file. E.g., it should be totally fine to use a config like this: apiVersion: v1
domain: gitpod.my-domain.example That would also make generating config values for e.g. replicated easier. I'll create an issue for this and we can discuss this there. When we agree on this, we can leave this pull request as is and handle your concern with a more general solution of using sensible default values of missing config properties. |
Looks good to me. @Pothulapati Would you mind squashing the commits into one commit? (By the way: I usually amend changes to the previous commit and force push them directly to the PR branch so that the Git history is always clean and ready to merge. You still see the history of changes in the PR on the Gitpod PR page and everyone can see diffs for each step even when you force push.) |
a7757ec
to
d19ae75
Compare
Fixes #8224 This PR adds a new `OpenVSX` object into the top-level `Config` field to support configurations of the `openvsx-proxy` component. Currently, Only `URL` field is present. This is needed to support air-gap instlalations where people are expected to host their own open-vsx. This config is top-level and not under the workspace or IDE as this configures the proxy, but not the IDE. The URL is validated by using the validate go tags. Signed-off-by: Tarun Pothulapati <[email protected]>
d19ae75
to
3813f39
Compare
Took the liberty and resolved the conflicts after we merged #8345. Hope, you're fine with that, @Pothulapati. 🙏 |
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.
LGTM
Thanks @corneliusludmann for doing that! |
Description
This PR adds a new
OpenVSX
object into the top-levelConfig
fieldto support configurations of the
openvsx-proxy
component. Currently,Only
URL
field is present. This is needed to support air-gapinstlalations where people are expected to host their own open-vsx.
This config is top-level and not under the workspace or IDE as this
configures the proxy, but not the IDE.
Signed-off-by: Tarun Pothulapati [email protected]
Related Issue(s)
Fixes #8224
How to test
Set
openVSX.url
to something else and do a./installer render -c ./config.yaml | grep <something>
Release Notes
Documentation