chore: update repo URLs after rename to headlamp-polaris-plugin
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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/polaris-headlamp-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}/polaris-headlamp-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/polaris-headlamp-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}/polaris-headlamp-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"
|
||||||
@@ -178,7 +178,7 @@ jobs:
|
|||||||
git tag -f ${GITHUB_REF_NAME}
|
git tag -f ${GITHUB_REF_NAME}
|
||||||
git push -f origin ${GITHUB_REF_NAME}
|
git push -f origin ${GITHUB_REF_NAME}
|
||||||
# Also push to GitHub directly to avoid waiting for mirror sync
|
# Also push to GitHub directly to avoid waiting for mirror sync
|
||||||
git remote add github https://x-access-token:${{ secrets.GH_PAT }}@github.com/cpfarhood/polaris-headlamp-plugin.git 2>/dev/null || true
|
git remote add github https://x-access-token:${{ secrets.GH_PAT }}@github.com/cpfarhood/headlamp-polaris-plugin.git 2>/dev/null || true
|
||||||
git push github main 2>/dev/null || true
|
git push github main 2>/dev/null || true
|
||||||
git push -f github ${GITHUB_REF_NAME} 2>/dev/null || true
|
git push -f github ${GITHUB_REF_NAME} 2>/dev/null || true
|
||||||
echo "Tag ${GITHUB_REF_NAME} aligned with updated metadata"
|
echo "Tag ${GITHUB_REF_NAME} aligned with updated metadata"
|
||||||
|
|||||||
@@ -40,14 +40,14 @@ Headlamp will fetch and install the plugin on startup.
|
|||||||
|
|
||||||
### Option 2: Docker init container
|
### Option 2: Docker init container
|
||||||
|
|
||||||
The plugin ships as a container image at `git.farh.net/farhoodliquor/polaris-headlamp-plugin`.
|
The plugin ships as a container image at `git.farh.net/farhoodliquor/headlamp-polaris-plugin`.
|
||||||
|
|
||||||
Add it as an init container in your Headlamp Helm values:
|
Add it as an init container in your Headlamp Helm values:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: polaris-plugin
|
- name: polaris-plugin
|
||||||
image: git.farh.net/farhoodliquor/polaris-headlamp-plugin:v0.0.1
|
image: git.farh.net/farhoodliquor/headlamp-polaris-plugin:v0.0.1
|
||||||
command: ["sh", "-c", "cp -r /plugins/* /headlamp/plugins/"]
|
command: ["sh", "-c", "cp -r /plugins/* /headlamp/plugins/"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: plugins
|
- name: plugins
|
||||||
@@ -64,7 +64,7 @@ volumeMounts:
|
|||||||
|
|
||||||
### Option 3: Manual tarball install
|
### Option 3: Manual tarball install
|
||||||
|
|
||||||
Download the `.tar.gz` from the [GitHub releases page](https://github.com/cpfarhood/polaris-headlamp-plugin/releases) or the [Gitea releases page](https://git.farh.net/farhoodliquor/polaris-headlamp-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 polaris-headlamp-plugin-0.0.1.tar.gz -C /headlamp/plugins/
|
||||||
@@ -112,7 +112,7 @@ subjects:
|
|||||||
### Setup
|
### Setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/cpfarhood/polaris-headlamp-plugin.git
|
git clone https://github.com/cpfarhood/headlamp-polaris-plugin.git
|
||||||
cd polaris-headlamp-plugin
|
cd polaris-headlamp-plugin
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
@@ -193,7 +193,7 @@ This triggers two CI pipelines:
|
|||||||
**Gitea Actions** (`.gitea/workflows/release.yaml`):
|
**Gitea Actions** (`.gitea/workflows/release.yaml`):
|
||||||
1. Build the plugin in a `node:20` container
|
1. Build the plugin in a `node:20` container
|
||||||
2. Package a `.tar.gz` tarball
|
2. Package a `.tar.gz` tarball
|
||||||
3. Build and push a Docker image to `git.farh.net/farhoodliquor/polaris-headlamp-plugin:{tag}` and `:latest`
|
3. Build and push a Docker image to `git.farh.net/farhoodliquor/headlamp-polaris-plugin:{tag}` and `:latest`
|
||||||
4. Create a Gitea release with the tarball attached
|
4. Create a Gitea release with the tarball attached
|
||||||
|
|
||||||
**GitHub Actions** (`.github/workflows/release.yml`):
|
**GitHub Actions** (`.github/workflows/release.yml`):
|
||||||
@@ -220,8 +220,8 @@ When releasing a new version, update `artifacthub-pkg.yml`:
|
|||||||
## Links
|
## Links
|
||||||
|
|
||||||
- [Artifact Hub](https://artifacthub.io/packages/headlamp/polaris-headlamp-plugin/polaris-headlamp-plugin)
|
- [Artifact Hub](https://artifacthub.io/packages/headlamp/polaris-headlamp-plugin/polaris-headlamp-plugin)
|
||||||
- [GitHub (mirror)](https://github.com/cpfarhood/polaris-headlamp-plugin)
|
- [GitHub (mirror)](https://github.com/cpfarhood/headlamp-polaris-plugin)
|
||||||
- [Gitea (source of truth)](https://git.farh.net/farhoodliquor/polaris-headlamp-plugin)
|
- [Gitea (source of truth)](https://git.farh.net/farhoodliquor/headlamp-polaris-plugin)
|
||||||
- [Headlamp](https://headlamp.dev/)
|
- [Headlamp](https://headlamp.dev/)
|
||||||
- [Fairwinds Polaris](https://polaris.docs.fairwinds.com/)
|
- [Fairwinds Polaris](https://polaris.docs.fairwinds.com/)
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -4,7 +4,7 @@ displayName: Polaris
|
|||||||
createdAt: "2026-02-05T19:00:00Z"
|
createdAt: "2026-02-05T19:00:00Z"
|
||||||
description: Surfaces Fairwinds Polaris audit results inside the Headlamp UI.
|
description: Surfaces Fairwinds Polaris audit results inside the Headlamp UI.
|
||||||
license: MIT
|
license: MIT
|
||||||
homeURL: "https://github.com/cpfarhood/polaris-headlamp-plugin"
|
homeURL: "https://github.com/cpfarhood/headlamp-polaris-plugin"
|
||||||
category: security
|
category: security
|
||||||
keywords:
|
keywords:
|
||||||
- polaris
|
- polaris
|
||||||
@@ -15,14 +15,14 @@ keywords:
|
|||||||
- kubernetes
|
- kubernetes
|
||||||
links:
|
links:
|
||||||
- name: Source
|
- name: Source
|
||||||
url: "https://github.com/cpfarhood/polaris-headlamp-plugin"
|
url: "https://github.com/cpfarhood/headlamp-polaris-plugin"
|
||||||
- name: Polaris
|
- name: Polaris
|
||||||
url: "https://polaris.docs.fairwinds.com/"
|
url: "https://polaris.docs.fairwinds.com/"
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: cpfarhood
|
- name: cpfarhood
|
||||||
email: "chris@farhood.org"
|
email: "chris@farhood.org"
|
||||||
annotations:
|
annotations:
|
||||||
headlamp/plugin/archive-url: "https://github.com/cpfarhood/polaris-headlamp-plugin/releases/download/v0.0.6/polaris-headlamp-plugin-0.0.6.tar.gz"
|
headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.0.6/polaris-headlamp-plugin-0.0.6.tar.gz"
|
||||||
headlamp/plugin/version-compat: ">=0.26"
|
headlamp/plugin/version-compat: ">=0.26"
|
||||||
headlamp/plugin/archive-checksum: sha256:afc57a1e869898b0197364e568205426f32572b703c638246463bb5c7898f4d2
|
headlamp/plugin/archive-checksum: sha256:afc57a1e869898b0197364e568205426f32572b703c638246463bb5c7898f4d2
|
||||||
headlamp/plugin/distro-compat: in-cluster
|
headlamp/plugin/distro-compat: in-cluster
|
||||||
|
|||||||
Reference in New Issue
Block a user