Skip to content

Commit 39a53f9

Browse files
merllj-zimnowoda
andauthored
fix: skip assignment of team-admin to argocd admin roles (#1818)
Co-authored-by: jeho <[email protected]>
1 parent 99553f3 commit 39a53f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

charts/team-ns/templates/argocd/argocd-project.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,11 @@ spec:
5858
- p, proj:team-{{ $v.teamId }}:platform-admin, *, *, team-{{ $v.teamId }}/*, allow
5959
groups:
6060
- platform-admin
61+
{{- if not (eq $v.teamId "admin") }}
6162
- team-{{ $v.teamId }}
63+
{{- end }}
6264
{{- end }}
65+
{{- if not (eq $v.teamId "admin") }}
6366
- name: team-member
6467
description: Team member privileges to team-{{ $v.teamId }}
6568
{{- if or (has "argocd" $v.selfService.apps) $v.otomi.isMultitenant }}
@@ -76,13 +79,12 @@ spec:
7679
{{- end }}
7780
groups:
7881
- team-{{ $v.teamId }}
82+
{{- end }}
7983
# A role which provides read-only access to all applications in the project
8084
- name: read-only
8185
description: Read-only privileges to team-{{ $v.teamId }}
8286
policies:
8387
- p, proj:team-{{ $v.teamId }}:read-only, applications, get, team-{{ $v.teamId }}/*, allow
84-
{{- if not $v.otomi.isMultitenant }}
85-
{{- end }}
8688
groups:
8789
- team-viewer
8890
- name: ci-role

0 commit comments

Comments
 (0)