Skip to content

This PR is to add comments to Allocate in fluid/pkg/ddc/base/portallocator/random_allocator.go.#6030

Open
sssq-max wants to merge 2 commits into
fluid-cloudnative:masterfrom
sssq-max:add-comments-to-allocate
Open

This PR is to add comments to Allocate in fluid/pkg/ddc/base/portallocator/random_allocator.go.#6030
sssq-max wants to merge 2 commits into
fluid-cloudnative:masterfrom
sssq-max:add-comments-to-allocate

Conversation

@sssq-max

Copy link
Copy Markdown

Add comments to Allocate in
fluid/pkg/ddc/base/portallocator/random_allocator.go.

Ⅰ. Describe what this PR does

Ⅱ. Does this pull request fix one issue?

fixes #6029

Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@fluid-e2e-bot

fluid-e2e-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign ronggu for approval by writing /assign @ronggu in a comment. For more information see:The Kubernetes Code Review Process.

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

@fluid-e2e-bot

fluid-e2e-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown

Hi @sssq-max. Thanks for your PR.

I'm waiting for a fluid-cloudnative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a descriptive comment to the Allocate method in random_allocator.go to clarify that it accepts the given port without performing allocation checks. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Add comments to Allocate in
fluid/pkg/ddc/base/portallocator/random_allocator.go.

Signed-off-by: sssq-max <3203599225@qq.com>
@sssq-max sssq-max force-pushed the add-comments-to-allocate branch from dd97582 to a2a23e7 Compare June 18, 2026 10:11
Signed-off-by: sssq-max <3203599225@qq.com>
@sssq-max sssq-max force-pushed the add-comments-to-allocate branch from 9039637 to 7a64455 Compare June 20, 2026 11:09
@sonarqubecloud

Copy link
Copy Markdown

@sssq-max

Copy link
Copy Markdown
Author

Updated the comment to clarify that Allocate is a no-op for RandomAllocator. Thanks for the review.

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.

Add comments to Allocate in fluid/pkg/ddc/base/portallocator/random_allocator.go.

1 participant