Skip to content

Commit

Permalink
fix: Emissary executor reads and writes to WorkflowTaskResults, not P…
Browse files Browse the repository at this point in the history
…ods (#2189)

Signed-off-by: Julie Vogelman <[email protected]>

Signed-off-by: Julie Vogelman <[email protected]>
  • Loading branch information
juliev0 authored and whynowy committed Sep 28, 2022
1 parent 3ea1f57 commit 1c68b59
Showing 1 changed file with 17 additions and 23 deletions.
40 changes: 17 additions & 23 deletions examples/rbac/workflow-rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
# This file enables a Workflow Pod (running Emissary executor) to be able to read and patch WorkflowTaskResults,
# which get shared with the Workflow Controller. The Controller uses the results to update Workflow status.
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: workflow-role
annotations:
workflows.argoproj.io/description: |
Recomended minimum permissions for the `emissary` executor.
name: executor
rules:
# pod get/watch is used to identify the container IDs of the current pod
# pod patch is used to annotate the step's outputs back to controller (e.g. artifact location)
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- watch
- patch
# logs get/watch are used to get the pods logs for script outputs, and for log archival
- apiGroups:
- ""
resources:
- pods/log
verbs:
- get
- watch
- apiGroups:
- argoproj.io
resources:
- workflowtaskresults
verbs:
- create
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: workflow-role-binding
name: executor-default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: workflow-role
name: executor
subjects:
- kind: ServiceAccount
name: default
- kind: ServiceAccount
name: default

0 comments on commit 1c68b59

Please sign in to comment.