-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Uniformly use proxy to get the configuration of configcat #16942
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
|
started the job as gitpod-build-pd-configcat.1 because the annotations in the pull request description changed |
742e9f9 to
d36f905
Compare
|
Cool, we can keep it with backwards compatibility and cleanup, after we roll it out. |
@easyCZ Could you give an approve? |
easyCZ
left a comment
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 should also normalize how the config is specified in the installer. Right now, there's some info passed into the proxy, and some passed into the Webapp.Experiments config. We should only one place for these
Yeah, I remove these 2 unused configs, because it's same as default value. |
|
@filiptronicek Are you taking of a review from IDE side? Don't want to intervene. |
akosyakov
left a comment
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.
I did not try, code wise looks good.
/hold
if someone else wants to review, otherwise merge when are ready
filiptronicek
left a comment
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.
@iQQBot did something change for the supervisor? I cannot see GITPOD_CONFIGCAT_ENABLED, although the server deployment has both CONFIGCAT_SDK_KEY and CONFIGCAT_BASE_URL set correctly 🤔.
Ah, we use ide-service to set env, but we don't enabled configcat in ide-service, added in e5450a5 |
filiptronicek
left a comment
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.
Tested and all looks good
|
To unblock merge, I plan to move commit 5835bcc to another PR |
|
/unhold |
Description
This PR adds consistency for the ConfigCat endpoint we use in Gitpod. Currently, most internal components use https://cdn.configcat.com/ directly and external clients (like VS Code Desktop) use our proxy (
gitpod.io/configcat), which is preferred (we control caching there). This PR unifies all code to use our ConfigCat proxy.There is a new configuration field of the supervisor named
EnabledConfigCatand a corresponding environment variable on the server,GITPOD_CONFIGCAT_ENABLED.Related Issue(s)
Relates to #16906 and #16903
How to test
kubectl describe deployment serverto check theCONFIG_CATrelate env is setting correct.kubectl describe pod ws-{instanceID}to checkGITPOD_CONFIGCAT_ENABLEDis set.Release Notes
Documentation
Build Options:
Run the build with werft instead of GHA
Run Leeway with
--dont-testPublish Options
Installer Options
Add desired feature flags to the end of the line above, space separated
Preview Environment Options:
If enabled this will build
install/previewIf enabled this will create the environment on GCE infra
Valid options are
all,workspace,webapp,ide,jetbrains,vscode,ssh