diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index c402bd0..d6aa503 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -18,7 +18,7 @@ jobs: - name: Check if release is already finalized run: | 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) if [ "$HTTP_CODE" = "200" ]; then ACTUAL="sha256:$(sha256sum /tmp/release.tar.gz | awk '{print $1}')" @@ -163,7 +163,7 @@ jobs: VERSION=${GITHUB_REF_NAME#v} 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-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 git config user.name "gitea-actions[bot]" git config user.email "gitea-actions[bot]@git.farh.net" diff --git a/Dockerfile b/Dockerfile index fdec050..80272c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,5 +6,5 @@ COPY src/ src/ RUN npx @kinvolk/headlamp-plugin build FROM alpine:3.20 -COPY --from=build /app/dist/ /plugins/polaris-headlamp-plugin/ -COPY --from=build /app/package.json /plugins/polaris-headlamp-plugin/ +COPY --from=build /app/dist/ /plugins/headlamp-polaris-plugin/ +COPY --from=build /app/package.json /plugins/headlamp-polaris-plugin/ diff --git a/README.md b/README.md index 0cc7e45..9325838 100644 --- a/README.md +++ b/README.md @@ -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: ```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 @@ -129,7 +129,7 @@ This starts the Headlamp plugin dev server. Point a running Headlamp instance at ```bash npm run build # outputs dist/main.js -npm run package # creates polaris-headlamp-plugin-.tar.gz +npm run package # creates headlamp-polaris-plugin-.tar.gz ``` ### Type-check diff --git a/artifacthub-pkg.yml b/artifacthub-pkg.yml index 4cde005..45d0775 100644 --- a/artifacthub-pkg.yml +++ b/artifacthub-pkg.yml @@ -22,7 +22,7 @@ maintainers: - name: cpfarhood email: "chris@farhood.org" 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/archive-checksum: sha256:425082de35c4c59363c8cfe5859145781f76dc2423084bd8b4585b28bec66784 headlamp/plugin/distro-compat: in-cluster diff --git a/package-lock.json b/package-lock.json index 5285796..ff3d046 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "polaris-headlamp-plugin", + "name": "headlamp-polaris-plugin", "version": "0.0.8", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "polaris-headlamp-plugin", + "name": "headlamp-polaris-plugin", "version": "0.0.8", "devDependencies": { "@kinvolk/headlamp-plugin": "^0.13.0" diff --git a/package.json b/package.json index 62c504a..ae40a80 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "polaris-headlamp-plugin", + "name": "headlamp-polaris-plugin", "version": "0.0.8", "description": "Headlamp plugin for Fairwinds Polaris audit results", "scripts": { diff --git a/src/index.tsx b/src/index.tsx index f4f569f..6e5eff0 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -44,4 +44,4 @@ registerRoute({ ), }); -registerPluginSettings('polaris-headlamp-plugin', PolarisSettings, true); +registerPluginSettings('headlamp-polaris-plugin', PolarisSettings, true);