Skip to content

Commit

Permalink
aggregate argocd admin permission to admin role for Argocd pull model (
Browse files Browse the repository at this point in the history
…#115)

Signed-off-by: Xiangjing Li <xiangli@redhat.com>
  • Loading branch information
xiangjingli authored Feb 20, 2025
1 parent 9313757 commit f08c768
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gitopsaddon/addonTemplates/addonTemplates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ spec:
- name: gitops-addon
image: quay.io/xiangjingli/multicloud-integrations:gitopsaddon-8
imagePullPolicy: IfNotPresent
securityContext:
privileged: false
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
capabilities:
drop:
- ALL
command:
- /usr/local/bin/gitopsaddon
- --leader-election-lease-duration=137s
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
rbac.authorization.k8s.io/aggregate-to-admin: "true"
name: argocd-aggregate-admin
rules:
- apiGroups:
- argoproj.io
resources:
- argocds
- appprojects
- applications
verbs:
- '*'

0 comments on commit f08c768

Please sign in to comment.