Skip to content

app-catalog and prometheus: Use scoped @headlamp-k8s package name - #1003

Open
dee077 wants to merge 2 commits into
headlamp-k8s:mainfrom
dee077:feat/headlamp-k8s-plugin-names
Open

dee077 wants to merge 2 commits into
headlamp-k8s:mainfrom
dee077:feat/headlamp-k8s-plugin-names

Conversation

@dee077

@dee077 dee077 commented Aug 4, 2026 •

Copy link
Copy Markdown

Description of changes

  • Renamed the app-catalog and prometheus plugin packages to the @headlamp-k8s npm scope (e.g. @headlamp-k8s/app-catalog), matching the scope already used by every other plugin in this repo
  • Bumped the patch version and regenerated package-lock.json for each of the three plugins
  • Updated app-catalog's SettingsLink to route via pluginDetails using the new scoped name
  • Updated prometheus's PLUGIN_NAME constant, which propagates the new name to settings registration, the config store, and the settings deep link

Fixes kubernetes-sigs/headlamp#2597

Currently, both the old (unscoped) and new (@headlamp-k8s-scoped) plugin show up, as seen below:

image

Todo:

  • De-duplication logic in Headlamp core so only the new @headlamp-k8s plugin is shown.

@dee077
dee077 force-pushed the feat/headlamp-k8s-plugin-names branch from 132407c to 3b78c85 Compare August 4, 2026 21:00

@skoeva skoeva 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.

don't think we need to be bumping the version numbers in this PR - that should be reserved for the next release. we can set this to draft for now

@skoeva
skoeva marked this pull request as draft August 5, 2026 13:35
@dee077
dee077 force-pushed the feat/headlamp-k8s-plugin-names branch from 3b78c85 to 5a87909 Compare August 8, 2026 23:01
@dee077
dee077 marked this pull request as ready for review August 21, 2026 23:11
@dee077
dee077 force-pushed the feat/headlamp-k8s-plugin-names branch from 5a87909 to cf5b9bc Compare September 8, 2026 06:59
@dee077

dee077 commented Sep 8, 2026

Copy link
Copy Markdown
Author

Updates

  • Rebased to currnet main
  • Dropped kmesh package name already handled in e400ec8

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.

Copilot review overview

🟡 Changes recommended

App-catalog formatting CI fails, migration coverage is missing, and publication depends on an unmerged core de-duplication change.

Review effort: Balanced
Findings: 1 High severity · 2 Medium severity · 1 Low severity

Open (4)
What changed in this PR

Scopes the app-catalog and Prometheus plugin identities under @headlamp-k8s; despite the metadata, kmesh is unchanged.

Changes:

  • Renames both npm packages and lockfile roots.
  • Updates settings links and Prometheus registration identity.
  • Preserves Prometheus configuration under its legacy storage key.
File Description
app-catalog/​package.json Applies the scoped package name.
app-catalog/​package-lock.json Regenerates lock metadata.
app-catalog/​src/​components/​charts/​SettingsLink.tsx Routes to the scoped plugin details.
prometheus/​package.json Applies the scoped package name.
prometheus/​package-lock.json Regenerates lock metadata.
prometheus/​src/​util.ts Separates plugin identity from the legacy configuration key.
Files not reviewed (2)
  • app-catalog/package-lock.json: Generated file
  • prometheus/package-lock.json: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread app-catalog/src/components/charts/SettingsLink.tsx Outdated
Comment thread app-catalog/package.json
Comment thread prometheus/src/util.ts
Comment thread prometheus/package.json
Match the scope already used by the other plugins in this repo.

Signed-off-by: dee077 <deepanshu.sahu27@gmail.com>
Match the scope already used by the other plugins in this repo. The
config store keeps the old 'prometheus' key, so saved settings are not
lost.

Signed-off-by: dee077 <deepanshu.sahu27@gmail.com>
@dee077 dee077 changed the title app-catalog, kmesh, prometheus: Use scoped @headlamp-k8s package name app-catalog and prometheus: Use scoped @headlamp-k8s package name Sep 30, 2026
@dee077
dee077 force-pushed the feat/headlamp-k8s-plugin-names branch from cf5b9bc to 89938ff Compare September 30, 2026 17:20
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.

Add 'headlamp-k8s' to plugin names in package.json

3 participants