Skip to content

Commit

Permalink
fix: skip assignment of team-admin to argocd admin roles (#1818)
Browse files Browse the repository at this point in the history
Co-authored-by: jeho <[email protected]>
  • Loading branch information
merll and j-zimnowoda authored Nov 21, 2024
1 parent 99553f3 commit 39a53f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions charts/team-ns/templates/argocd/argocd-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ spec:
- p, proj:team-{{ $v.teamId }}:platform-admin, *, *, team-{{ $v.teamId }}/*, allow
groups:
- platform-admin
{{- if not (eq $v.teamId "admin") }}
- team-{{ $v.teamId }}
{{- end }}
{{- end }}
{{- if not (eq $v.teamId "admin") }}
- name: team-member
description: Team member privileges to team-{{ $v.teamId }}
{{- if or (has "argocd" $v.selfService.apps) $v.otomi.isMultitenant }}
Expand All @@ -76,13 +79,12 @@ spec:
{{- end }}
groups:
- team-{{ $v.teamId }}
{{- end }}
# A role which provides read-only access to all applications in the project
- name: read-only
description: Read-only privileges to team-{{ $v.teamId }}
policies:
- p, proj:team-{{ $v.teamId }}:read-only, applications, get, team-{{ $v.teamId }}/*, allow
{{- if not $v.otomi.isMultitenant }}
{{- end }}
groups:
- team-viewer
- name: ci-role
Expand Down

0 comments on commit 39a53f9

Please sign in to comment.