Skip to content
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

chore: support kbagent multi ports allocate hostnetwork port #8565

Merged
merged 4 commits into from
Dec 3, 2024

Conversation

Y-Rookie
Copy link
Collaborator

@Y-Rookie Y-Rookie commented Dec 3, 2024

No description provided.

@Y-Rookie Y-Rookie requested review from leon-inf and a team as code owners December 3, 2024 03:14
@github-actions github-actions bot added the size/M Denotes a PR that changes 30-99 lines. label Dec 3, 2024
@github-actions github-actions bot added size/XS Denotes a PR that changes 0-9 lines. and removed size/M Denotes a PR that changes 30-99 lines. labels Dec 3, 2024
if err != nil {
return nil, err
return nil, fmt.Errorf("failed to allocate port for container %s, port %s: %v",
container.Name, port.Name, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

the order of params is incorrect.

return nil, err
if err := pm.UsePort(portKey, port.ContainerPort); err != nil {
return nil, fmt.Errorf("failed to use port for container %s, port %s: %v",
container.Name, port.Name, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@apecloud-bot apecloud-bot added the approved PR Approved Test label Dec 3, 2024
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 60.38%. Comparing base (d9fda81) to head (3d7782f).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...trollers/apps/transformer_component_hostnetwork.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8565      +/-   ##
==========================================
+ Coverage   60.33%   60.38%   +0.05%     
==========================================
  Files         376      376              
  Lines       45858    45858              
==========================================
+ Hits        27667    27693      +26     
+ Misses      15588    15578      -10     
+ Partials     2603     2587      -16     
Flag Coverage Δ
unittests 60.38% <0.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@apecloud-bot apecloud-bot removed the approved PR Approved Test label Dec 3, 2024
@github-actions github-actions bot added size/L Denotes a PR that changes 100-499 lines. and removed size/XS Denotes a PR that changes 0-9 lines. labels Dec 3, 2024
@apecloud-bot apecloud-bot added the approved PR Approved Test label Dec 3, 2024
@Y-Rookie Y-Rookie merged commit c206d0e into main Dec 3, 2024
35 checks passed
@Y-Rookie Y-Rookie deleted the support/support-kbagent-multi-hostnetwork-port branch December 3, 2024 07:18
@github-actions github-actions bot added this to the Release 0.9.2 milestone Dec 3, 2024
@Y-Rookie
Copy link
Collaborator Author

Y-Rookie commented Dec 3, 2024

/cherry-pick release-1.0-beta

Copy link

github-actions bot commented Dec 3, 2024

🤖 says: cherry pick action finished successfully 🎉!
See: https://github.com/apecloud/kubeblocks/actions/runs/12134773556

github-actions bot pushed a commit that referenced this pull request Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved PR Approved Test size/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants