add sensor and workflow
This commit is contained in:
29
infrastructures/argo-events/base/examples/workflow.yaml
Normal file
29
infrastructures/argo-events/base/examples/workflow.yaml
Normal file
@@ -0,0 +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:
|
||||
annotations:
|
||||
workflows.argoproj.io/description: |
|
||||
Recomended minimum permissions for the `emissary` executor.
|
||||
name: executor
|
||||
rules:
|
||||
- apiGroups:
|
||||
- argoproj.io
|
||||
resources:
|
||||
- workflowtaskresults
|
||||
verbs:
|
||||
- create
|
||||
- patch
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: executor-default
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: executor
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: default
|
||||
Reference in New Issue
Block a user