Skip to content

feat: add "Port forward" action for Services in the resource browser - #3157

Open
abhibhaw wants to merge 1 commit into
developfrom
feat/rb-port-forward-proxy
Open

abhibhaw wants to merge 1 commit into
developfrom
feat/rb-port-forward-proxy

Conversation

@abhibhaw

@abhibhaw abhibhaw commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Description

Adds a "Port forward" entry point for Services in the resource browser:

  • the resource row action menu, above Delete
  • the resource detail header, next to Delete

Both render only when all three are true:

  1. PortForwardModal is available from devtron-fe-lib (enterprise; importComponentFromFELibrary, so null in OSS)
  2. FEATURE_RB_PORT_FORWARD_ENABLE is on (default false, added to .env, index.tsx defaults and config.md)
  3. the kind is Service

FEATURE_RB_PORT_FORWARD_ENABLE is added to customEnv by module augmentation in src/index.tsx until devtron-fe-common-lib declares it. The menu id is widened locally (ResourceBrowserActionMenuEnum | 'port-forward') for the same reason. Both are marked TODO.

The header actions are wrapped in a flex container. The ml-16 gap before Delete is kept for all kinds.

No linked issue.

Related PRs (merge in this order)

  1. devtron-labs/devtron-services-enterprise#455 - common-lib engine fixes
  2. devtron-labs/devtron-enterprise#3462 - orchestrator route (run make dep-update-ent after 1 merges)
  3. devtron-labs/devtron-fe-lib#1278 - PortForwardModal
  4. feat: add "Port forward" action for Services in the resource browser #3157 - Resource browser entry points

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • tsc --noEmit and ESLint clean on changed files.
  • The menu item and header button were not rendered in a running dashboard. That needs a built fe-lib and a logged-in backend. Please check both, and a non-Service header for layout, during review.

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR. (config.md)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

🤖 Generated with Claude Code

Adds a "Port forward" item in the resource row menu (above Delete) and a
"Port forward" button in the resource detail header (next to Delete).
Both render only when PortForwardModal is available from devtron-fe-lib
(enterprise), FEATURE_RB_PORT_FORWARD_ENABLE is on (default false), and
the resource kind is Service.

FEATURE_RB_PORT_FORWARD_ENABLE is added to customEnv by module
augmentation until devtron-fe-common-lib declares it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

@github-actions github-actions Bot added the PR:Issue-verification-failed PR:Issue-verification-failed label Dec 1, 2026
@abhibhaw
abhibhaw marked this pull request as ready for review December 1, 2026 12:42
Copilot AI balanced review requested due to automatic review settings December 1, 2026 12:42
@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Inaccessible enterprise dependency PRs left integration contracts unverified, while both entry points and Service/non-Service header layouts still require runtime validation.

No open issues 🎉

What changed in this PR

Adds enterprise-only “Port forward” entry points for Services in the resource browser, controlled by a new feature flag that defaults to disabled.

Changes:

  • Adds a row-menu action above Delete and a detail-header button beside Delete, both opening PortForwardModal.
  • Gates availability on the enterprise modal, feature flag, and Service resource kind.
  • Adds flag defaults, temporary shared-library type extensions, and documentation of the required backend proxy setting.
File Description
src/​index.tsx Declares the feature flag type and disabled runtime default.
src/​components/​v2/​appDetails/​k8Resource/​nodeDetail/​NodeDetail.component.tsx Adds the detail-header button and modal handling.
src/​components/​ResourceBrowser/​ResourceList/​ResourceBrowserActionMenu.tsx Adds the row-menu action and modal handling.
config.md Documents the feature flag and backend proxy prerequisite.
.env Sets the feature flag to disabled by default.

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR:Issue-verification-failed PR:Issue-verification-failed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants