From bca823c97f9634d95c287b30ce7e2c8b7659292c Mon Sep 17 00:00:00 2001 From: chliddle Date: Mon, 16 Dec 2024 13:59:36 +0000 Subject: [PATCH] chore: add presync to service account rbac --- charts/namada-indexer/templates/rbac.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/charts/namada-indexer/templates/rbac.yaml b/charts/namada-indexer/templates/rbac.yaml index a82e8c1..4e67968 100644 --- a/charts/namada-indexer/templates/rbac.yaml +++ b/charts/namada-indexer/templates/rbac.yaml @@ -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"] @@ -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