Skip to content

Commit c99a665

Browse files
committed
Update service-account for argo-workflows
1 parent bd9080f commit c99a665

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

addons/argo-workflows/resources/service-account-argo-workflow-executor/kustomization.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ kind: Kustomization
33

44
resources:
55
- rbac.yaml
6+
- secret.yaml
67

78
namespace: default
8-
labels:
9-
- pairs:
10-
app.kubernetes.io/part-of: "argo-workflow"
11-
includeSelectors: false
9+
commonLabels:
10+
app.kubernetes.io/part-of: "argo-workflow"

addons/argo-workflows/resources/service-account-argo-workflow-executor/rbac.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ metadata:
44
name: argo-workflow-executor
55
labels:
66
app.kubernetes.io/name: "argo-workflow-executor"
7+
secrets:
8+
- name: argo-workflow-executor.service-account-token
79

810
---
911
apiVersion: rbac.authorization.k8s.io/v1
@@ -31,6 +33,34 @@ rules:
3133
verbs:
3234
- get
3335
- watch
36+
- apiGroups:
37+
- ""
38+
resources:
39+
- pods/exec
40+
verbs:
41+
- create
42+
- apiGroups:
43+
- argoproj.io
44+
resources:
45+
- workflowtaskresults
46+
verbs:
47+
- create
48+
- patch
49+
- apiGroups:
50+
- argoproj.io
51+
resources:
52+
- workflowtasksets
53+
- workflowartifactgctasks
54+
verbs:
55+
- list
56+
- watch
57+
- apiGroups:
58+
- argoproj.io
59+
resources:
60+
- workflowtasksets/status
61+
- workflowartifactgctasks/status
62+
verbs:
63+
- patch
3464

3565
---
3666
apiVersion: rbac.authorization.k8s.io/v1
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: v1
2+
kind: Secret
3+
type: kubernetes.io/service-account-token
4+
metadata:
5+
name: argo-workflow-executor.service-account-token
6+
annotations:
7+
kubernetes.io/service-account.name: argo-workflow-executor

0 commit comments

Comments
 (0)