58 lines
2.1 KiB
YAML
58 lines
2.1 KiB
YAML
---
|
|
# RBAC for the GitHub Actions CI runner to manage E2E Headlamp instances.
|
|
# CI-only test fixture — NOT for production use.
|
|
#
|
|
<<<<<<< HEAD
|
|
# Grants the ARC runner service account permissions in the headlamp-dev
|
|
# namespace to deploy and tear down a dedicated Headlamp instance via Helm.
|
|
# E2E resources run in `headlamp-dev` — nothing persists beyond a test run.
|
|
#
|
|
# 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
|
|
kind: Role
|
|
metadata:
|
|
name: e2e-ci-runner
|
|
namespace: headlamp-dev
|
|
rules:
|
|
# Helm needs to manage these resources for the Headlamp chart
|
|
- apiGroups: ["apps"]
|
|
resources: ["deployments"]
|
|
verbs: ["get", "list", "create", "update", "patch", "delete", "watch"]
|
|
- apiGroups: [""]
|
|
resources: ["services", "serviceaccounts", "configmaps", "secrets", "events"]
|
|
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
|
- apiGroups: [""]
|
|
resources: ["pods"]
|
|
verbs: ["get", "list", "watch"]
|
|
# Token creation for E2E test auth
|
|
- apiGroups: [""]
|
|
resources: ["serviceaccounts/token"]
|
|
verbs: ["create"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: e2e-ci-runner-binding
|
|
namespace: headlamp-dev
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: runners-privilegedescalation-gha-rs-no-permission
|
|
namespace: arc-runners
|
|
roleRef:
|
|
kind: Role
|
|
name: e2e-ci-runner
|
|
apiGroup: rbac.authorization.k8s.io
|
|
=======
|
|
# This file is a REFERENCE ONLY. The canonical manifest lives in:
|
|
# privilegedescalation/infra/base/rbac/e2e-ci-runner-headlamp-rbac.yaml
|
|
#
|
|
# The infra repo is managed by Flux GitOps and is the source of truth.
|
|
# Do not apply this file directly — it is kept here for developer reference only.
|
|
#
|
|
# E2E resources run in `privilegedescalation-dev` — nothing persists beyond a test run.
|
|
# RBAC is managed via Flux from privilegedescalation/infra — do not apply manually.
|
|
>>>>>>> 1f02811 (Reference shared infra RBAC in deployment scripts)
|