refactor: rename npm package to headlamp-polaris-plugin

Aligns npm package name with the repo and ArtifactHub package name.
Updates all references: package.json, registerPluginSettings, Dockerfile,
release workflow tarball URLs, artifacthub-pkg.yml archive-url, and README.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-07 08:40:08 -05:00
parent 244714316f
commit dab068a963
7 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ jobs:
- name: Check if release is already finalized - name: Check if release is already finalized
run: | run: |
VERSION=${GITHUB_REF_NAME#v} VERSION=${GITHUB_REF_NAME#v}
TARBALL_URL="https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/${GITHUB_REF_NAME}/polaris-headlamp-plugin-${VERSION}.tar.gz" TARBALL_URL="https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/${GITHUB_REF_NAME}/headlamp-polaris-plugin-${VERSION}.tar.gz"
HTTP_CODE=$(curl -sL -o /tmp/release.tar.gz -w "%{http_code}" "$TARBALL_URL" 2>/dev/null) HTTP_CODE=$(curl -sL -o /tmp/release.tar.gz -w "%{http_code}" "$TARBALL_URL" 2>/dev/null)
if [ "$HTTP_CODE" = "200" ]; then if [ "$HTTP_CODE" = "200" ]; then
ACTUAL="sha256:$(sha256sum /tmp/release.tar.gz | awk '{print $1}')" ACTUAL="sha256:$(sha256sum /tmp/release.tar.gz | awk '{print $1}')"
@@ -163,7 +163,7 @@ jobs:
VERSION=${GITHUB_REF_NAME#v} VERSION=${GITHUB_REF_NAME#v}
git checkout main git checkout main
sed -i "s|headlamp/plugin/archive-checksum:.*|headlamp/plugin/archive-checksum: sha256:${CHECKSUM}|" artifacthub-pkg.yml sed -i "s|headlamp/plugin/archive-checksum:.*|headlamp/plugin/archive-checksum: sha256:${CHECKSUM}|" artifacthub-pkg.yml
sed -i "s|headlamp/plugin/archive-url:.*|headlamp/plugin/archive-url: \"https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/${GITHUB_REF_NAME}/polaris-headlamp-plugin-${VERSION}.tar.gz\"|" artifacthub-pkg.yml sed -i "s|headlamp/plugin/archive-url:.*|headlamp/plugin/archive-url: \"https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/${GITHUB_REF_NAME}/headlamp-polaris-plugin-${VERSION}.tar.gz\"|" artifacthub-pkg.yml
sed -i "s|^version:.*|version: ${VERSION}|" artifacthub-pkg.yml sed -i "s|^version:.*|version: ${VERSION}|" artifacthub-pkg.yml
git config user.name "gitea-actions[bot]" git config user.name "gitea-actions[bot]"
git config user.email "gitea-actions[bot]@git.farh.net" git config user.email "gitea-actions[bot]@git.farh.net"
+2 -2
View File
@@ -6,5 +6,5 @@ COPY src/ src/
RUN npx @kinvolk/headlamp-plugin build RUN npx @kinvolk/headlamp-plugin build
FROM alpine:3.20 FROM alpine:3.20
COPY --from=build /app/dist/ /plugins/polaris-headlamp-plugin/ COPY --from=build /app/dist/ /plugins/headlamp-polaris-plugin/
COPY --from=build /app/package.json /plugins/polaris-headlamp-plugin/ COPY --from=build /app/package.json /plugins/headlamp-polaris-plugin/
+2 -2
View File
@@ -67,7 +67,7 @@ volumeMounts:
Download the `.tar.gz` from the [GitHub releases page](https://github.com/cpfarhood/headlamp-polaris-plugin/releases) or the [Gitea releases page](https://git.farh.net/farhoodliquor/headlamp-polaris-plugin/releases), then extract into Headlamp's plugin directory: Download the `.tar.gz` from the [GitHub releases page](https://github.com/cpfarhood/headlamp-polaris-plugin/releases) or the [Gitea releases page](https://git.farh.net/farhoodliquor/headlamp-polaris-plugin/releases), then extract into Headlamp's plugin directory:
```bash ```bash
tar xzf polaris-headlamp-plugin-0.0.1.tar.gz -C /headlamp/plugins/ tar xzf headlamp-polaris-plugin-0.0.1.tar.gz -C /headlamp/plugins/
``` ```
### Option 4: Build from source ### Option 4: Build from source
@@ -129,7 +129,7 @@ This starts the Headlamp plugin dev server. Point a running Headlamp instance at
```bash ```bash
npm run build # outputs dist/main.js npm run build # outputs dist/main.js
npm run package # creates polaris-headlamp-plugin-<version>.tar.gz npm run package # creates headlamp-polaris-plugin-<version>.tar.gz
``` ```
### Type-check ### Type-check
+1 -1
View File
@@ -22,7 +22,7 @@ maintainers:
- name: cpfarhood - name: cpfarhood
email: "chris@farhood.org" email: "chris@farhood.org"
annotations: annotations:
headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.0.8/polaris-headlamp-plugin-0.0.8.tar.gz" headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.0.8/headlamp-polaris-plugin-0.0.8.tar.gz"
headlamp/plugin/version-compat: ">=0.26" headlamp/plugin/version-compat: ">=0.26"
headlamp/plugin/archive-checksum: sha256:425082de35c4c59363c8cfe5859145781f76dc2423084bd8b4585b28bec66784 headlamp/plugin/archive-checksum: sha256:425082de35c4c59363c8cfe5859145781f76dc2423084bd8b4585b28bec66784
headlamp/plugin/distro-compat: in-cluster headlamp/plugin/distro-compat: in-cluster
+2 -2
View File
@@ -1,11 +1,11 @@
{ {
"name": "polaris-headlamp-plugin", "name": "headlamp-polaris-plugin",
"version": "0.0.8", "version": "0.0.8",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "polaris-headlamp-plugin", "name": "headlamp-polaris-plugin",
"version": "0.0.8", "version": "0.0.8",
"devDependencies": { "devDependencies": {
"@kinvolk/headlamp-plugin": "^0.13.0" "@kinvolk/headlamp-plugin": "^0.13.0"
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"name": "polaris-headlamp-plugin", "name": "headlamp-polaris-plugin",
"version": "0.0.8", "version": "0.0.8",
"description": "Headlamp plugin for Fairwinds Polaris audit results", "description": "Headlamp plugin for Fairwinds Polaris audit results",
"scripts": { "scripts": {
+1 -1
View File
@@ -44,4 +44,4 @@ registerRoute({
), ),
}); });
registerPluginSettings('polaris-headlamp-plugin', PolarisSettings, true); registerPluginSettings('headlamp-polaris-plugin', PolarisSettings, true);