Skip to content

Commit e634cb2

Browse files
executor: list the k8s executor's real RBAC rules in the README
Amp-Thread-ID: https://ampcode.com/threads/T-01a1d269-2788-7075-b66b-b87e3087047d Co-authored-by: Amp <amp@ampcode.com>
1 parent 9ac7013 commit e634cb2

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎charts/sourcegraph-executor/README.md‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ This chart deploys executors that interact with the Kubernetes API to handle job
1111
1212
Your cluster will need to allow configuration of the following RBAC rules:
1313

14-
| API Groups | Resources | Verbs | Reason |
15-
|------------|--------------------|---------------------------|-------------------------------------------------------------------------------------------|
16-
| `batch` | `jobs` | `create`, `delete` | Executors create Job pods to run processes. Once Jobs are completed, they are cleaned up. |
17-
| | `pods`, `pods/log` | `get`, `list`, `watch` | Executors need to look up and steam logs from the Job Pods. |
14+
| API Groups | Resources | Verbs | Reason |
15+
|------------|-------------------------------------|--------------------|-------------------------------------------------------------------------------------------|
16+
| `batch` | `jobs` | `create`, `delete` | Executors create Job pods to run processes. Once Jobs are completed, they are cleaned up. |
17+
| `""` | `pods` | `watch` | Executors watch the Job pods to know when each step finishes. |
18+
| `""` | `pods/log` | `get` | Executors stream logs from the Job pods. |
19+
| `""` | `secrets`, `persistentvolumeclaims` | `create`, `delete` | Executors create a Secret for each job, and a PVC when job volumes use PVCs. |
1820

1921
## Docker in Docker (dind)
2022

0 commit comments

Comments
 (0)