File tree Expand file tree Collapse file tree 4 files changed +60
-0
lines changed Expand file tree Collapse file tree 4 files changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is a role and rolebinding to provide the argo-server with permissions
2
+ # it needs to run in its own namespace.
3
+ # - to read the configmap for its configuration
4
+ # - read the SSO secret
5
+ # - create and read other secrets for auth tokens
6
+ ---
7
+ apiVersion : rbac.authorization.k8s.io/v1
8
+ kind : Role
9
+ metadata :
10
+ name : argo-server-role
11
+ rules :
12
+ - apiGroups :
13
+ - " "
14
+ resources :
15
+ - configmaps
16
+ verbs :
17
+ - get
18
+ - watch
19
+ resourceNames :
20
+ - workflow-controller-configmap
21
+ - apiGroups :
22
+ - " "
23
+ resources :
24
+ - secrets
25
+ verbs :
26
+ - get
27
+ - create
28
+ resourceNames :
29
+ - argo-sso
30
+ - sso
Original file line number Diff line number Diff line change
1
+ apiVersion : rbac.authorization.k8s.io/v1
2
+ kind : RoleBinding
3
+ metadata :
4
+ name : argo-server-binding
5
+ roleRef :
6
+ apiGroup : rbac.authorization.k8s.io
7
+ kind : Role
8
+ name : argo-server-role
9
+ subjects :
10
+ - kind : ServiceAccount
11
+ name : argo-server
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ resources:
11
11
# to the ClusterRole for just the namespaces we want.
12
12
- https://github.com/argoproj/argo-workflows/manifests/cluster-install/?ref=v3.6.10
13
13
14
+ # adds argo-server role so the argo-server has enough permissions to run
15
+ - argo-server-role.yaml
16
+ - argo-server-rolebinding.yaml
17
+
14
18
# ingress for workflows.${DNS_ZONE} to the argo server for the UI
15
19
- ingress.yaml
16
20
@@ -41,6 +45,13 @@ patches:
41
45
name : argo-server-binding
42
46
path : delete-argo-server-crb.yaml
43
47
48
+ - target :
49
+ group : rbac.authorization.k8s.io
50
+ version : v1
51
+ kind : Role
52
+ name : argo-role
53
+ path : workflow-controller-role.yaml
54
+
44
55
# see the patch for details on the change
45
56
- target :
46
57
group : apps
Original file line number Diff line number Diff line change
1
+ ---
2
+ - op : add
3
+ path : /rules/-
4
+ value :
5
+ apiGroups : [""]
6
+ resources : ["configmaps"]
7
+ verbs : ["get", "watch"]
8
+ resourceNames : ["workflow-controller-configmap"]
You can’t perform that action at this time.
0 commit comments