ci: update polaris plugin version and add headlamp SA to RBAC
- Update headlamp-static-plugin-values.yaml to 0.7.2 - Add headlamp service account to polaris-dashboard-proxy-reader RoleBinding - Update documentation references from headlamp-polaris-plugin to headlamp-polaris Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -180,9 +180,9 @@ metadata:
|
||||
namespace: kube-system
|
||||
data:
|
||||
plugin.yml: |
|
||||
- name: headlamp-polaris-plugin
|
||||
- name: headlamp-polaris
|
||||
version: 0.3.5
|
||||
url: https://github.com/privilegedescalation/headlamp-polaris-plugin/releases/download/v0.3.10/polaris-0.3.10.tar.gz
|
||||
url: https://github.com/privilegedescalation/headlamp-polaris/releases/download/v0.3.10/polaris-0.3.10.tar.gz
|
||||
```
|
||||
|
||||
Apply ConfigMap then deploy Headlamp:
|
||||
@@ -357,7 +357,7 @@ helm upgrade headlamp headlamp/headlamp \
|
||||
### Upgrade Plugin (Plugin Manager Method)
|
||||
|
||||
1. Navigate to **Settings → Plugins** in Headlamp UI
|
||||
2. Find "headlamp-polaris-plugin"
|
||||
2. Find "headlamp-polaris"
|
||||
3. Click **Update** if new version available
|
||||
4. Hard refresh browser (**Cmd+Shift+R** / **Ctrl+Shift+R**)
|
||||
|
||||
@@ -386,7 +386,7 @@ helm get values headlamp -n kube-system
|
||||
|
||||
# Verify plugin files exist
|
||||
kubectl -n kube-system exec deployment/headlamp -c headlamp -- \
|
||||
ls -la /headlamp/plugins/headlamp-polaris-plugin/
|
||||
ls -la /headlamp/plugins/headlamp-polaris/
|
||||
|
||||
# If missing, reinstall plugin via UI or check init container logs
|
||||
kubectl -n kube-system logs deployment/headlamp -c install-polaris-plugin
|
||||
|
||||
@@ -26,7 +26,7 @@ metadata:
|
||||
name: polaris-proxy-reader
|
||||
namespace: polaris
|
||||
labels:
|
||||
app.kubernetes.io/name: headlamp-polaris-plugin
|
||||
app.kubernetes.io/name: headlamp-polaris
|
||||
app.kubernetes.io/component: rbac
|
||||
rules:
|
||||
- apiGroups: ['']
|
||||
@@ -42,7 +42,7 @@ metadata:
|
||||
name: headlamp-polaris-proxy
|
||||
namespace: polaris
|
||||
labels:
|
||||
app.kubernetes.io/name: headlamp-polaris-plugin
|
||||
app.kubernetes.io/name: headlamp-polaris
|
||||
app.kubernetes.io/component: rbac
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
@@ -96,9 +96,9 @@ metadata:
|
||||
app.kubernetes.io/component: plugin-config
|
||||
data:
|
||||
plugin.yml: |
|
||||
- name: headlamp-polaris-plugin
|
||||
- name: headlamp-polaris
|
||||
version: 0.3.5
|
||||
url: https://github.com/privilegedescalation/headlamp-polaris-plugin/releases/download/v0.3.10/polaris-0.3.10.tar.gz
|
||||
url: https://github.com/privilegedescalation/headlamp-polaris/releases/download/v0.3.10/polaris-0.3.10.tar.gz
|
||||
```
|
||||
|
||||
### Headlamp Deployment with Plugin Init Container
|
||||
@@ -256,7 +256,7 @@ kubectl -n kube-system logs deployment/headlamp -c install-plugins
|
||||
|
||||
# Verify plugin files exist
|
||||
kubectl -n kube-system exec deployment/headlamp -c headlamp -- \
|
||||
ls -la /headlamp/plugins/headlamp-polaris-plugin/
|
||||
ls -la /headlamp/plugins/headlamp-polaris/
|
||||
|
||||
# Expected output:
|
||||
# drwxr-xr-x dist/
|
||||
@@ -388,7 +388,7 @@ For GitOps with FluxCD:
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: headlamp-polaris-plugin
|
||||
name: headlamp-polaris
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m
|
||||
|
||||
@@ -70,14 +70,14 @@ kubectl -n kube-system logs deployment/headlamp | grep -i polaris
|
||||
# Expected: No errors related to plugin loading
|
||||
|
||||
# 4. Verify plugin files exist
|
||||
kubectl -n kube-system exec deployment/headlamp -c headlamp -- ls -la /headlamp/plugins/headlamp-polaris-plugin/
|
||||
kubectl -n kube-system exec deployment/headlamp -c headlamp -- ls -la /headlamp/plugins/headlamp-polaris/
|
||||
# Expected: dist/, package.json present
|
||||
```
|
||||
|
||||
### UI Verification
|
||||
|
||||
- [ ] Navigate to **Settings → Plugins**
|
||||
- [ ] Verify "headlamp-polaris-plugin" is listed with correct version
|
||||
- [ ] Verify "headlamp-polaris" is listed with correct version
|
||||
- [ ] Sidebar shows "Polaris" entry
|
||||
- [ ] Click **Polaris → Overview** - page loads successfully
|
||||
- [ ] Cluster score gauge displays
|
||||
@@ -437,7 +437,7 @@ If Headlamp or plugin becomes unavailable:
|
||||
|
||||
```bash
|
||||
kubectl -n kube-system exec deployment/headlamp -- \
|
||||
ls /headlamp/plugins/headlamp-polaris-plugin/
|
||||
ls /headlamp/plugins/headlamp-polaris/
|
||||
```
|
||||
|
||||
5. **Hard refresh browser:**
|
||||
|
||||
Reference in New Issue
Block a user