Skip to content

Make transport HTTP and HTTPS ports configurable#213

Merged
Jithmi004 merged 1 commit intowso2:mainfrom
Jithmi004:4.7.0-helm-chart-updates-jithmi
Apr 29, 2026
Merged

Make transport HTTP and HTTPS ports configurable#213
Jithmi004 merged 1 commit intowso2:mainfrom
Jithmi004:4.7.0-helm-chart-updates-jithmi

Conversation

@Jithmi004
Copy link
Copy Markdown
Contributor

Purpose

subject via adding the server portOffset to default transport ports values

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 29, 2026

Warning

Rate limit exceeded

@Jithmi004 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 45 minutes and 25 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c4833291-0bd4-47a0-b8ff-dae8679ca040

📥 Commits

Reviewing files that changed from the base of the PR and between 1a0ed1e and 97a517a.

📒 Files selected for processing (5)
  • all-in-one/confs/instance-1/deployment.toml
  • all-in-one/confs/instance-2/deployment.toml
  • all-in-one/templates/am/instance-1/wso2am-deployment.yaml
  • all-in-one/templates/am/instance-2/wso2am-deployment.yaml
  • distributed/gateway/confs/deployment.toml
📝 Walkthrough

Walkthrough

The pull request makes APIM transport listener ports offset-configurable across multiple templates. Hardcoded HTTP (9763) and HTTPS (9443) ports were replaced with Helm-templated expressions that add .Values.wso2.apim.portOffset to the base ports. The change is applied to transport listener definitions and to deployment templates (container ports and startup/liveness/readiness probes) in the affected all-in-one and distributed gateway configurations. Other transport and probe settings remain unchanged.

Sequence Diagram(s)

sequenceDiagram
  participant Helm as Helm template renderer
  participant K8sAPI as Kubernetes API
  participant Kubelet as Kubelet
  participant APIM as APIM container
  Helm->>Helm: compute ports = base + .Values.wso2.apim.portOffset
  Helm->>K8sAPI: render & apply Deployment YAML (ports, probes)
  K8sAPI->>Kubelet: schedule Pod with rendered spec
  Kubelet->>APIM: start container with configured containerPort(s)
  APIM->>APIM: bind listeners to computed HTTP/HTTPS ports
  Kubelet->>APIM: run startup/liveness/readiness probes against computed ports
  Kubelet-->>K8sAPI: report probe results/status
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request description is incomplete, providing only a partial Purpose section without addressing most required template sections such as Goals, Approach, User stories, Release notes, Documentation, and others. Complete the pull request description by filling in the remaining template sections, particularly Goals, Approach, Release notes, and Documentation, to provide comprehensive context for reviewers.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main objective of the changeset: making transport HTTP and HTTPS ports configurable through a port offset mechanism.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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
Review rate limit: 0/1 reviews remaining, refill in 45 minutes and 25 seconds.

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

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)
all-in-one/confs/instance-1/deployment.toml (1)

120-126: ⚠️ Potential issue | 🟠 Major

Keep the listener ports aligned with the pod spec.

all-in-one/templates/am/instance-1/wso2am-deployment.yaml still exposes and probes 9763/9443, so this change will desynchronize the runtime listener ports from the Kubernetes wiring when portOffset is non-zero.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@all-in-one/confs/instance-1/deployment.toml` around lines 120 - 126, The
deployment.toml change adjusts listener ports (via portOffset) but the
Kubernetes manifest all-in-one/templates/am/instance-1/wso2am-deployment.yaml
still hardcodes and probes ports 9763 and 9443, causing a mismatch; update the
Deployment/Service containerPort, readinessProbe, livenessProbe, and Service
port definitions in wso2am-deployment.yaml (and any env vars or args referencing
9763/9443) to compute and use the same effective ports as deployment.toml (i.e.,
add portOffset where used) or derive ports from the same chart values (e.g., use
.Values.wso2.apim.configurations.server.portOffset or templated expressions) so
the pod spec, probes, and Service remain aligned with the runtime listener
ports.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@all-in-one/confs/instance-2/deployment.toml`:
- Around line 247-253: The listener ports under the [transport.http] and
[transport.https] blocks use Helm expressions with a portOffset (properties.port
= {{ add 9763 .Values.wso2.apim.portOffset }} and properties.port = {{ add 9443
.Values.wso2.apim.portOffset }}), which can desync from the pod/service/probe
wiring; either remove the offset here and set the concrete pod-facing ports that
the Service/Probe expect, or update the corresponding instance-2
deployment/service/probe manifests to compute their target ports using the same
.Values.wso2.apim.portOffset so the values for properties.port
(transport.http/transport.https) and properties.proxyPort remain aligned. Ensure
the symbols to change are the properties.port lines in [transport.http] and
[transport.https] (or update the deployment/service/probe templates to mirror
the same add ... .Values.wso2.apim.portOffset calculation).

---

Outside diff comments:
In `@all-in-one/confs/instance-1/deployment.toml`:
- Around line 120-126: The deployment.toml change adjusts listener ports (via
portOffset) but the Kubernetes manifest
all-in-one/templates/am/instance-1/wso2am-deployment.yaml still hardcodes and
probes ports 9763 and 9443, causing a mismatch; update the Deployment/Service
containerPort, readinessProbe, livenessProbe, and Service port definitions in
wso2am-deployment.yaml (and any env vars or args referencing 9763/9443) to
compute and use the same effective ports as deployment.toml (i.e., add
portOffset where used) or derive ports from the same chart values (e.g., use
.Values.wso2.apim.configurations.server.portOffset or templated expressions) so
the pod spec, probes, and Service remain aligned with the runtime listener
ports.
🪄 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: 1ec24cd0-933b-4e51-aeff-e78e8f571684

📥 Commits

Reviewing files that changed from the base of the PR and between bf83034 and 6dd68d0.

📒 Files selected for processing (3)
  • all-in-one/confs/instance-1/deployment.toml
  • all-in-one/confs/instance-2/deployment.toml
  • distributed/gateway/confs/deployment.toml

Comment thread all-in-one/confs/instance-2/deployment.toml
@Jithmi004 Jithmi004 force-pushed the 4.7.0-helm-chart-updates-jithmi branch from 1a0ed1e to df8fe88 Compare April 29, 2026 03:22
@Jithmi004 Jithmi004 force-pushed the 4.7.0-helm-chart-updates-jithmi branch from 121f3f2 to 97a517a Compare April 29, 2026 03:35
@Jithmi004 Jithmi004 merged commit 6feb787 into wso2:main Apr 29, 2026
2 checks passed
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