Skip to content

Conversation

@AiRanthem
Copy link
Member

@AiRanthem AiRanthem commented Dec 19, 2025

Ⅰ. 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

@AiRanthem AiRanthem changed the title [Feature] support custom e2b [WIP] [Feature] support custom e2b Dec 22, 2025
@AiRanthem AiRanthem changed the title [WIP] [Feature] support custom e2b [Feature] support custom e2b Dec 25, 2025
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>
@AiRanthem AiRanthem force-pushed the feature/custom-e2b-protocol-251219 branch from 274c41b to 13d8a9b Compare December 25, 2025 09:05
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) {
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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.
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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.

@zmberg
Copy link
Member

zmberg commented Jan 8, 2026

/lgtm
/approve

@kruise-bot
Copy link

[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.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@zmberg zmberg merged commit 6e6ce86 into openkruise:master Jan 8, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants