84bd885b56
Adds deployment/e2e-ci-runner-rbac.yaml which grants the Arc Runners service account the minimum permissions to deploy/teardown an E2E Headlamp instance in headlamp-dev (or privilegedescalation-dev when E2E_NAMESPACE is overridden). Note: polaris-plugin also needs the E2E_NAMESPACE in the workflow env block changed to privilegedescalation-dev to match intel-gpu-plugin. Fixes PRI-550. Co-Authored-By: Paperclip <noreply@paperclip.ing>
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
---
|
|
# e2e-ci-runner-rbac.yaml
|
|
#
|
|
# Grants the GitHub Actions runner's service account (Arc Runners) the minimum
|
|
# permissions needed to deploy/teardown an E2E Headlamp instance in the
|
|
# privilegedescalation-dev namespace.
|
|
# headlamp-dev namespace (override via E2E_NAMESPACE when needed).
|
|
#
|
|
# Applied automatically by the E2E workflow before deploy-e2e-headlamp.sh runs.
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: e2e-ci-runner
|
|
namespace: privilegedescalation-dev
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["configmaps", "serviceaccounts", "events"]
|
|
verbs: ["get", "list", "create", "delete"]
|
|
- apiGroups: ["apps"]
|
|
resources: ["deployments"]
|
|
verbs: ["get", "create", "delete"]
|
|
- apiGroups: [""]
|
|
resources: ["services"]
|
|
verbs: ["get", "create", "delete"]
|
|
- apiGroups: [""]
|
|
resources: ["pods"]
|
|
verbs: ["get", "list"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: e2e-ci-runner
|
|
namespace: privilegedescalation-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 |