Skip to content

Commit

Permalink
chore: add presync to service account rbac
Browse files Browse the repository at this point in the history
  • Loading branch information
chliddle committed Dec 16, 2024
1 parent 4395bfc commit bca823c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/namada-indexer/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ metadata:
name: {{ include "namada-indexer.fullname" . }}
labels:
{{- include "namada-indexer.labels" . | nindent 4 }}
{{- if .Values.argocd.deployment }}
annotations:
"argocd.argoproj.io/hook": "PreSync"
"argocd.argoproj.io/sync-wave": "-4"
{{- end }}
rules:
# For deployment scaling and management
- apiGroups: ["apps"]
Expand Down Expand Up @@ -38,6 +43,11 @@ metadata:
name: {{ include "namada-indexer.fullname" . }}
labels:
{{- include "namada-indexer.labels" . | nindent 4 }}
{{- if .Values.argocd.deployment }}
annotations:
"argocd.argoproj.io/hook": "PreSync"
"argocd.argoproj.io/sync-wave": "-4"
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand Down

0 comments on commit bca823c

Please sign in to comment.