Skip to content

feat(deployment): create IP endpoints in the expose ports modal - #3385

Merged
ygrishajev merged 1 commit into
mainfrom
feat/deployment-ip-endpoints-in-expose-modal
Jul 2, 2026
Merged

feat(deployment): create IP endpoints in the expose ports modal#3385
ygrishajev merged 1 commit into
mainfrom
feat/deployment-ip-endpoints-in-expose-modal

Conversation

@ygrishajev

@ygrishajev ygrishajev commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Why

Closes CON-619
Part of CON-411

An IP endpoint (a dedicated public IP for a deployment) used to be declared in a
standalone section, disconnected from the service that would use it. That made it easy
to declare an endpoint no service referenced — and an unused IP endpoint is rejected by
the Akash SDL parser, so the deploy failed with a confusing error instead of the problem
being prevented up front.

What

Moves IP endpoint creation into a service port's Routing control in the Expose Ports modal:

  • The routing dropdown gains + New IP endpoint, which keeps that value selected and
    reveals an inline name input (no separate add/cancel buttons). The name is committed on
    Save and the port is bound to the endpoint immediately; saving with an empty name is
    blocked with an inline error.
  • Endpoints stay selectable by other services' ports, so an IP can be shared across services.
  • The SDL generator emits only endpoints that a port references — an unused endpoint is now
    dropped from the SDL instead of failing the deploy (this replaces the short-lived
    "unused endpoint" validation error).
  • Removes the standalone IP Endpoints section (row + manager) from the Deployment pane.

Tests included: endpoint-name validation (empty / format / uniqueness); generator drops
unused and emits referenced endpoints; SDL import round-trips a referenced endpoint;
deployment-pane specs updated.

Notes

  • Follow-up (CON-620): collapse the endpoint model to a single source of truth — derive the
    selectable endpoints from port usage and drop the now-redundant endpoints list.
  • E2E walkthrough steps for this flow (create-and-bind, cross-service reuse, empty-name Save
    error, unused-dropped-from-SDL) were added to the shared configure-deployment walkthrough
    spec, which is tracked separately and not part of this commit.
Screen.Recording.2026-07-02.at.14.15.00.mov

Summary by CodeRabbit

  • New Features

    • You can now create a new IP endpoint directly while configuring a port, without leaving the page.
    • Added inline validation for endpoint names, including required, format, and duplicate-name checks.
  • Bug Fixes

    • Saved configurations now keep only endpoints that are actually used by a service port.
    • Import/export behavior now preserves endpoint references between services and endpoint definitions more reliably.

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 59d6370d-c779-4801-8713-f45cdd7c1a26

📥 Commits

Reviewing files that changed from the base of the PR and between 30862f7 and 4dcd87b.

📒 Files selected for processing (13)
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/ExposePortsCard/ExposePortsCard.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/ExposePortsCard/ExposePortsCard.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/DeploymentPane.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/DeploymentPane.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/EndpointRow/EndpointRow.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/EndpointRow/EndpointRow.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/IpEndpointsSection/IpEndpointsSection.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/IpEndpointsSection/IpEndpointsSection.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/useEndpointManager/useEndpointManager.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/useEndpointManager/useEndpointManager.ts
  • apps/deploy-web/src/utils/sdl/sdlGenerator.spec.ts
  • apps/deploy-web/src/utils/sdl/sdlGenerator.ts
  • apps/deploy-web/src/utils/sdl/sdlImport.spec.ts
💤 Files with no reviewable changes (8)
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/IpEndpointsSection/IpEndpointsSection.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/useEndpointManager/useEndpointManager.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/EndpointRow/EndpointRow.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/EndpointRow/EndpointRow.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/useEndpointManager/useEndpointManager.ts
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/IpEndpointsSection/IpEndpointsSection.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/DeploymentPane.spec.tsx
  • apps/deploy-web/src/utils/sdl/sdlGenerator.ts

📝 Walkthrough

Walkthrough

The PR adds inline creation and validation of IP endpoints in the expose-port configuration flow, removes the separate IP endpoints pane, and updates SDL generation/import so endpoints are emitted only when referenced by a service expose entry.

Changes

IP endpoint flow

Layer / File(s) Summary
Inline endpoint creation
apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/ExposePortsCard/ExposePortsCard.tsx, apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/ExposePortsCard/ExposePortsCard.spec.tsx
Adds the NEW_IP_ENDPOINT routing sentinel, inline endpoint-name input, name validation, commit registration, and save-time commit execution for expose-port rows. Tests cover valid, invalid, blank, and duplicate endpoint names.
SDL endpoint references
apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/DeploymentPane.tsx, apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentPane/DeploymentPane.spec.tsx, apps/deploy-web/src/utils/sdl/sdlGenerator.ts, apps/deploy-web/src/utils/sdl/sdlGenerator.spec.ts, apps/deploy-web/src/utils/sdl/sdlImport.spec.ts
Removes the IP endpoints section from the deployment pane and changes SDL handling so endpoints are generated from service ipName references and preserved through import/export tests.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

  • akash-network/console#3263: Touches generateSdl endpoint emission from service expose entries, which overlaps with the SDL behavior changed here.
  • akash-network/console#3369: Introduces the ExposePortsCard endpoint-routing flow that this PR extends with inline endpoint creation and validation.

Suggested labels: size: XL

Suggested reviewers: stalniy, baktun14

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/deployment-ip-endpoints-in-expose-modal

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

@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.43%. Comparing base (6e71c81) to head (4dcd87b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3385      +/-   ##
==========================================
- Coverage   69.80%   68.43%   -1.37%     
==========================================
  Files        1100     1010      -90     
  Lines       26915    24577    -2338     
  Branches     6453     5992     -461     
==========================================
- Hits        18787    16819    -1968     
+ Misses       7134     6796     -338     
+ Partials      994      962      -32     
Flag Coverage Δ *Carryforward flag
api 85.13% <ø> (ø) Carriedforward from 6e71c81
deploy-web 54.98% <ø> (-0.01%) ⬇️ Carriedforward from 6e71c81
log-collector ?
notifications 91.44% <ø> (ø) Carriedforward from 6e71c81
provider-console 81.38% <ø> (ø) Carriedforward from 6e71c81
provider-inventory ?
provider-proxy 86.26% <ø> (ø) Carriedforward from 6e71c81
tx-signer ?

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...figureDeployment/DeploymentPane/DeploymentPane.tsx 100.00% <ø> (ø)
apps/deploy-web/src/utils/sdl/sdlGenerator.ts 56.43% <ø> (-1.12%) ⬇️

... and 90 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ygrishajev
ygrishajev enabled auto-merge July 2, 2026 12:37
A port's Routing control now offers "+ New IP endpoint", revealing an inline
name input that is committed on Save and bound to that port. Endpoints created
this way stay selectable by other services. The generator emits only endpoints
a port actually references, so an unused endpoint is dropped from the SDL
instead of failing the deploy. Removes the standalone IP Endpoints section from
the deployment pane.
@ygrishajev
ygrishajev force-pushed the feat/deployment-ip-endpoints-in-expose-modal branch from 30862f7 to 4dcd87b Compare July 2, 2026 12:42
@ygrishajev
ygrishajev added this pull request to the merge queue Jul 2, 2026
Merged via the queue into main with commit 03f99fb Jul 2, 2026
57 checks passed
@ygrishajev
ygrishajev deleted the feat/deployment-ip-endpoints-in-expose-modal branch July 2, 2026 14:45
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