Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bea7eaa67b | |||
| 9a1d7f961f | |||
| e6e2aa63a5 | |||
| dab068a963 | |||
| 244714316f | |||
| b1fa087011 | |||
| bfe926546b | |||
| dccc393857 | |||
| f414dafa28 |
@@ -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
@@ -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/
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# polaris-headlamp-plugin
|
# headlamp-polaris-plugin
|
||||||
|
|
||||||
[](https://artifacthub.io/packages/headlamp/polaris-headlamp-plugin/polaris-headlamp-plugin)
|
[](https://artifacthub.io/packages/headlamp/polaris/headlamp-polaris-plugin)
|
||||||
|
|
||||||
A [Headlamp](https://headlamp.dev/) plugin that surfaces [Fairwinds Polaris](https://polaris.docs.fairwinds.com/) audit results directly in the Headlamp UI.
|
A [Headlamp](https://headlamp.dev/) plugin that surfaces [Fairwinds Polaris](https://polaris.docs.fairwinds.com/) audit results directly in the Headlamp UI.
|
||||||
|
|
||||||
@@ -28,12 +28,12 @@ Error states are handled explicitly: RBAC denied (403), Polaris not installed (4
|
|||||||
|
|
||||||
### Option 1: Artifact Hub + Headlamp plugin manager (recommended)
|
### Option 1: Artifact Hub + Headlamp plugin manager (recommended)
|
||||||
|
|
||||||
The plugin is published on [Artifact Hub](https://artifacthub.io/packages/headlamp/polaris-headlamp-plugin/polaris-headlamp-plugin). Configure Headlamp's `pluginsManager` in your Helm values to install it automatically:
|
The plugin is published on [Artifact Hub](https://artifacthub.io/packages/headlamp/polaris/headlamp-polaris-plugin). Configure Headlamp's `pluginsManager` in your Helm values to install it automatically:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
pluginsManager:
|
pluginsManager:
|
||||||
sources:
|
sources:
|
||||||
- url: https://artifacthub.io/packages/headlamp/polaris-headlamp-plugin/polaris-headlamp-plugin
|
- url: https://artifacthub.io/packages/headlamp/polaris/headlamp-polaris-plugin
|
||||||
```
|
```
|
||||||
|
|
||||||
Headlamp will fetch and install the plugin on startup.
|
Headlamp will fetch and install the plugin on startup.
|
||||||
@@ -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
|
||||||
@@ -113,7 +113,7 @@ subjects:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/cpfarhood/headlamp-polaris-plugin.git
|
git clone https://github.com/cpfarhood/headlamp-polaris-plugin.git
|
||||||
cd polaris-headlamp-plugin
|
cd headlamp-polaris-plugin
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -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
|
||||||
@@ -219,7 +219,7 @@ 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-polaris-plugin)
|
||||||
- [GitHub (mirror)](https://github.com/cpfarhood/headlamp-polaris-plugin)
|
- [GitHub (mirror)](https://github.com/cpfarhood/headlamp-polaris-plugin)
|
||||||
- [Gitea (source of truth)](https://git.farh.net/farhoodliquor/headlamp-polaris-plugin)
|
- [Gitea (source of truth)](https://git.farh.net/farhoodliquor/headlamp-polaris-plugin)
|
||||||
- [Headlamp](https://headlamp.dev/)
|
- [Headlamp](https://headlamp.dev/)
|
||||||
|
|||||||
+4
-4
@@ -1,5 +1,5 @@
|
|||||||
version: 0.0.7
|
version: 0.0.9
|
||||||
name: polaris-headlamp-plugin
|
name: headlamp-polaris-plugin
|
||||||
displayName: Polaris
|
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.
|
||||||
@@ -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.7/polaris-headlamp-plugin-0.0.7.tar.gz"
|
headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.0.9/headlamp-polaris-plugin-0.0.9.tar.gz"
|
||||||
headlamp/plugin/version-compat: ">=0.26"
|
headlamp/plugin/version-compat: ">=0.26"
|
||||||
headlamp/plugin/archive-checksum: sha256:760b3229e9eed5817269b05f639c8ce596ebc9acec737d46071349ec102bf345
|
headlamp/plugin/archive-checksum: sha256:8f5b46dd6a2acae22a7dc5fe7d273b561aa5a7b08b32e029132d23c643b6837c
|
||||||
headlamp/plugin/distro-compat: in-cluster
|
headlamp/plugin/distro-compat: in-cluster
|
||||||
|
|||||||
Generated
+4
-4
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "polaris-headlamp-plugin",
|
"name": "headlamp-polaris-plugin",
|
||||||
"version": "0.0.5",
|
"version": "0.0.9",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "polaris-headlamp-plugin",
|
"name": "headlamp-polaris-plugin",
|
||||||
"version": "0.0.5",
|
"version": "0.0.9",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@kinvolk/headlamp-plugin": "^0.13.0"
|
"@kinvolk/headlamp-plugin": "^0.13.0"
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "polaris-headlamp-plugin",
|
"name": "headlamp-polaris-plugin",
|
||||||
"version": "0.0.7",
|
"version": "0.0.9",
|
||||||
"description": "Headlamp plugin for Fairwinds Polaris audit results",
|
"description": "Headlamp plugin for Fairwinds Polaris audit results",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "headlamp-plugin start",
|
"start": "headlamp-plugin start",
|
||||||
|
|||||||
+1
-1
@@ -44,4 +44,4 @@ registerRoute({
|
|||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|
||||||
registerPluginSettings('polaris-headlamp-plugin', PolarisSettings, true);
|
registerPluginSettings('headlamp-polaris-plugin', PolarisSettings, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user