-
Notifications
You must be signed in to change notification settings - Fork 27
[Feature] support custom e2b #34
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
[Feature] support custom e2b #34
Conversation
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
274c41b to
13d8a9b
Compare
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
| } | ||
| handleFunc := func(w http.ResponseWriter, r *http.Request) { | ||
| written := false | ||
| safeWriteJson := func(ctx context.Context, w http.ResponseWriter, code, defaultCode int, body any, requestID string) { |
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.
consider rename safeWriteJson to writeJsonOnce
| @@ -0,0 +1,91 @@ | |||
| # Customized E2B SDK patch | |||
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.
plz rename the file to README-zh_CN.md
|
|
||
| In our practice, we found that in K8s scenarios, this protocol has the following issues: | ||
|
|
||
| 1. Requires configuring wildcard domain resolution to the management service (sandbox-manager), unable to use methods |
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.
unable to use methods like hosts for resolution ->
unable to use host file for resolution.
| 2. Requires using expensive wildcard certificates. | ||
|
|
||
| The above issues simultaneously make deploying a backend service compatible with E2B have a high threshold: not only | ||
| increasing user costs, but also making it difficult to automate the setup of an E2E test environment. |
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.
plz revise the text as follows:
The issues above collectively raise the barrier to deploying a backend service compatible with E2B—not only increasing user costs but also complicating the automation of end-to-end (E2E) test environment setup.
|
|
||
| ### 1. Integration using native protocol | ||
|
|
||
| > This is the most standard, native integration method, but also has the highest configuration threshold, generally |
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 the most standard but also the most complex method
|
|
||
| ### 2. Private protocol HTTPS access from outside cluster | ||
|
|
||
| > This approach can reduce deployment threshold and can be semi-automatically deployed in combination with components |
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.
revise the text as follows:
This approach lowers the deployment barrier and enables semi-automated deployment when used in conjunction with components such as cert-manager.
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zmberg The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Ⅰ. Describe what this PR does
see sdk/customized_e2b
Ⅱ. Does this pull request fix one issue?
Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews