Skip to content

feat: support auto assign node port for dp-manager#271

Merged
Baoyuantop merged 2 commits intomainfrom
feat/dp-manager-nodeport
Mar 31, 2026
Merged

feat: support auto assign node port for dp-manager#271
Baoyuantop merged 2 commits intomainfrom
feat/dp-manager-nodeport

Conversation

@Baoyuantop
Copy link
Copy Markdown
Contributor

@Baoyuantop Baoyuantop commented Mar 31, 2026

Summary

Add nodeport configuration support for dp-manager service, similar to gateway stream's autoAssignNodePort feature.

Changes

  • Add autoAssignNodePort option to automatically set nodePort to same value as HTTP/HTTPS port
  • Add nodePort option for custom HTTP nodePort value
  • Add tlsNodePort option for custom HTTPS nodePort value
  • Update chart version from 0.17.47 to 0.17.48
  • Update README documentation

Configuration

dp_manager_service:
  type: ClusterIP
  # Auto assign nodePort to same value as port
  autoAssignNodePort: false
  # Or manually specify nodePort
  nodePort: null
  tlsNodePort: null
  port: 7900
  tlsPort: 7943

Reference

Related: #258

Summary by CodeRabbit

  • Chores

    • Helm chart version updated to 0.17.48
  • New Features

    • NodePort service configuration now supports automatic assignment or explicit NodePort values for HTTP and HTTPS when using NodePort services; validation enforces valid NodePort ranges.
  • Documentation

    • Documentation updated to explain the new NodePort options and usage.

Add nodeport configuration support for dp-manager service:
- Add autoAssignNodePort option to automatically set nodePort to same value as port
- Add manual nodePort/tlsNodePort options for custom nodePort values
- Update chart version to 0.17.48
- Update README documentation

Reference: PR #258
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 31, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ea4a98c6-7bf8-49b5-bae0-32621561330c

📥 Commits

Reviewing files that changed from the base of the PR and between 9317dcb and 9bb5ea3.

📒 Files selected for processing (2)
  • charts/api7/README.md
  • charts/api7/templates/dp-manager-service.yaml
✅ Files skipped from review due to trivial changes (1)
  • charts/api7/README.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • charts/api7/templates/dp-manager-service.yaml

📝 Walkthrough

Walkthrough

Bumps the api7 Helm chart to 0.17.48 and adds dp_manager_service NodePort controls: new values (autoAssignNodePort, nodePort, tlsNodePort) plus template logic to conditionally assign/validate NodePort values; README updated accordingly.

Changes

Cohort / File(s) Summary
Chart metadata
charts/api7/Chart.yaml
Chart version updated from 0.17.470.17.48.
Values & docs
charts/api7/values.yaml, charts/api7/README.md
Added dp_manager_service.autoAssignNodePort: false, dp_manager_service.nodePort: null, dp_manager_service.tlsNodePort: null; README badge/version and documentation for the new values updated.
Service template
charts/api7/templates/dp-manager-service.yaml
Added conditional NodePort assignment and range validation when dp_manager_service.type == "NodePort" and autoAssignNodePort is true; nodePort fields only rendered for NodePort services and choose between auto-assigned or explicit values.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested reviewers

  • AlinsRan

Poem

🐇 I hop through charts with a tiny cheer,
NodePorts set tidy, now crystal clear,
Version bumped softly to forty-eight,
Ports assigned neatly — oh, what a state! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main feature addition: NodePort auto-assignment support for the dp-manager service, which is the primary change across all modified files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/dp-manager-nodeport

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Baoyuantop Baoyuantop requested a review from nic-6443 March 31, 2026 01:40
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
charts/api7/README.md (1)

3-3: ⚠️ Potential issue | 🟡 Minor

Update README version badge to match chart version.

Line 3 still shows 0.17.47, but charts/api7/Chart.yaml was bumped to 0.17.48.

📝 Suggested doc fix
-![Version: 0.17.47](https://img.shields.io/badge/Version-0.17.47-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.9.7](https://img.shields.io/badge/AppVersion-3.9.7-informational?style=flat-square)
+![Version: 0.17.48](https://img.shields.io/badge/Version-0.17.48-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.9.7](https://img.shields.io/badge/AppVersion-3.9.7-informational?style=flat-square)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@charts/api7/README.md` at line 3, Update the README version badge so it
matches the Chart.yaml chart version bump: replace the "Version: 0.17.47" badge
text in the README line containing the version badge with "Version: 0.17.48"
(the badge alt/text and query value that currently reads 0.17.47). Ensure the
string containing "Version-0.17.47" is updated to "Version-0.17.48" so the
README reflects the Chart.yaml version change.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@charts/api7/templates/dp-manager-service.yaml`:
- Around line 22-39: The template currently uses dp_manager_service.port and
dp_manager_service.tlsPort as nodePort when
dp_manager_service.autoAssignNodePort is true, which can produce out-of-range
NodePorts; update dp-manager-service.yaml to fail-fast: when
dp_manager_service.autoAssignNodePort is true, do not inject nodePort from
port/tlsPort (let Kubernetes auto-assign) or validate that port/tlsPort are
within 30000-32767 and call Helm's fail with a clear message; specifically add
checks around dp_manager_service.autoAssignNodePort, dp_manager_service.port,
and dp_manager_service.tlsPort (and keep existing dp_manager_service.nodePort /
dp_manager_service.tlsNodePort handling unchanged) and use the Helm fail(...)
function to error during template rendering if values fall outside the
30000-32767 range.

---

Outside diff comments:
In `@charts/api7/README.md`:
- Line 3: Update the README version badge so it matches the Chart.yaml chart
version bump: replace the "Version: 0.17.47" badge text in the README line
containing the version badge with "Version: 0.17.48" (the badge alt/text and
query value that currently reads 0.17.47). Ensure the string containing
"Version-0.17.47" is updated to "Version-0.17.48" so the README reflects the
Chart.yaml version change.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a115c67e-6fa9-40a7-9a3c-b69dec459909

📥 Commits

Reviewing files that changed from the base of the PR and between 800fe1d and 9317dcb.

📒 Files selected for processing (4)
  • charts/api7/Chart.yaml
  • charts/api7/README.md
  • charts/api7/templates/dp-manager-service.yaml
  • charts/api7/values.yaml

- Update README version badge to 0.17.48
- Add port range validation for autoAssignNodePort: fail if port/tlsPort
  is outside 30000-32767 when autoAssignNodePort is true
Baoyuantop

This comment was marked as outdated.

@Baoyuantop Baoyuantop merged commit 59db2e3 into main Mar 31, 2026
3 checks passed
@Baoyuantop Baoyuantop deleted the feat/dp-manager-nodeport branch March 31, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants