Skip to content

Conversation

@dashanji
Copy link
Contributor

Ⅰ. Describe what this PR does

Part of #3749

@fluid-e2e-bot
Copy link

fluid-e2e-bot bot commented Apr 26, 2024

Hi @dashanji. 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.

}
expectedPortNum := expectedMasterPortNum + expectedWorkerPortNum

allocator, err := portallocator.GetRuntimePortAllocator()
Copy link
Collaborator

Choose a reason for hiding this comment

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

May I know where do you use setupRuntimeAllocator to init?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you should have the following code:

Cmd.Flags().StringVar(&portAllocatePolicy, "port-allocate-policy", "random", "Set port allocating policy, available choice is bitmap or random(default random).")

err = portallocator.SetupRuntimePortAllocator(mgr.GetClient(), pr, portAllocatePolicy, juicefs.GetReservedPorts)
	if err != nil {
		setupLog.Error(err, "failed to setup runtime port allocator")
		os.Exit(1)
	}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, it's my fault. I have not noticed the init function of the setupRuntimeAllocator. Thanks for pointing it out.

@dashanji dashanji force-pushed the add-hostnetwork-and-metadata branch from 1ed4a04 to c35e936 Compare April 26, 2024 10:28
…onents.

Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
@dashanji dashanji force-pushed the add-hostnetwork-and-metadata branch from c35e936 to 48632ed Compare April 26, 2024 11:47
@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

Issues
10 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
20.0% Duplication on New Code

See analysis details on SonarCloud

@cheyang cheyang requested a review from TrafalgarZZZ April 27, 2024 07:09
Copy link
Collaborator

@cheyang cheyang left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@fluid-e2e-bot
Copy link

fluid-e2e-bot bot commented Apr 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheyang

The full list of commands accepted by this bot can be found here.

The pull request process is described 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 merged commit 3f4dbe8 into fluid-cloudnative:master Apr 27, 2024
Ricky-Daxia pushed a commit to Ricky-Daxia/fluid that referenced this pull request May 6, 2024
…onents. (fluid-cloudnative#3981)

Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
Signed-off-by: Ricky-Daxia <1915754435@qq.com>
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.

2 participants