Compare commits

..

1 Commits

Author SHA1 Message Date
Chris Farhood ba0848dd54 Replace privilegedescalation-dev with headlamp-dev namespace
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-05 01:47:25 +00:00
3 changed files with 20 additions and 20 deletions
-3
View File
@@ -51,9 +51,6 @@ jobs:
- name: Build plugin - name: Build plugin
run: npx @kinvolk/headlamp-plugin build run: npx @kinvolk/headlamp-plugin build
- name: Apply RBAC for E2E runner
run: kubectl apply -f deployment/e2e-ci-runner-rbac.yaml
- name: Deploy E2E Headlamp instance - name: Deploy E2E Headlamp instance
run: scripts/deploy-e2e-headlamp.sh run: scripts/deploy-e2e-headlamp.sh
+1 -1
View File
@@ -57,7 +57,7 @@ changes:
- kind: added - kind: added
description: ExemptionManager test suite — full coverage of annotation-based exemption flows description: ExemptionManager test suite — full coverage of annotation-based exemption flows
- kind: fixed - kind: fixed
description: E2E infrastructure overhauled — ConfigMap volume mount replaces Dockerfile-based approach, tests run in privilegedescalation-dev namespace description: E2E infrastructure overhauled — ConfigMap volume mount replaces Dockerfile-based approach, tests run in headlamp-dev namespace
- kind: fixed - kind: fixed
description: E2E workflow uses token auth and waits for HTTP reachability before running tests description: E2E workflow uses token auth and waits for HTTP reachability before running tests
- kind: fixed - kind: fixed
+19 -16
View File
@@ -1,37 +1,40 @@
--- ---
# e2e-ci-runner-rbac.yaml # RBAC for the GitHub Actions CI runner to manage the E2E Headlamp instance.
# CI-only test fixture — NOT for production use.
# #
# Grants the GitHub Actions runner's service account (Arc Runners) the minimum # Grants the ARC runner service account permissions in the headlamp-dev
# permissions needed to deploy/teardown an E2E Headlamp instance in the # namespace to deploy and tear down a dedicated Headlamp instance via Helm.
# headlamp-dev namespace (override via E2E_NAMESPACE when needed). # E2E resources run in `headlamp-dev` — nothing persists beyond a test run.
# #
# Applied automatically by the E2E workflow before deploy-e2e-headlamp.sh runs. # Plugin is loaded via ConfigMap volume mount — no custom Docker images.
#
# Note: This RBAC is mirrored in privilegedescalation/infra (base/rbac/)
# and managed by Flux GitOps. The infra repo is the source of truth.
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: Role kind: Role
metadata: metadata:
name: e2e-ci-runner name: e2e-ci-runner
namespace: headlamp-dev namespace: headlamp-dev
rules: rules:
- apiGroups: ["rbac.authorization.k8s.io"] # Helm needs to manage these resources for the Headlamp chart
resources: ["roles", "rolebindings"]
verbs: ["get", "list", "watch", "create", "delete"]
- apiGroups: [""]
resources: ["configmaps", "serviceaccounts", "events"]
verbs: ["get", "list", "create", "delete"]
- apiGroups: ["apps"] - apiGroups: ["apps"]
resources: ["deployments"] resources: ["deployments"]
verbs: ["get", "create", "delete"] verbs: ["get", "list", "create", "update", "patch", "delete", "watch"]
- apiGroups: [""] - apiGroups: [""]
resources: ["services"] resources: ["services", "serviceaccounts", "configmaps", "secrets", "events"]
verbs: ["get", "create", "delete"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: [""] - apiGroups: [""]
resources: ["pods"] resources: ["pods"]
verbs: ["get", "list"] verbs: ["get", "list", "watch"]
# Token creation for E2E test auth
- apiGroups: [""]
resources: ["serviceaccounts/token"]
verbs: ["create"]
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding kind: RoleBinding
metadata: metadata:
name: e2e-ci-runner name: e2e-ci-runner-binding
namespace: headlamp-dev namespace: headlamp-dev
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount