Add argocd-hook-sa ServiceAccount to app namespaces

PreSync/PostSync hook Jobs reference argocd-hook-sa but it only existed
in the argocd namespace. Jobs running in app namespaces (crowdsec,
authentik, netbird, vault, istio-system) need the SA in their own
namespace.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Scooby Husky
2026-03-10 17:51:04 -05:00
co-authored by Claude Opus 4.6
parent 308145cc90
commit e296400053
5 changed files with 90 additions and 0 deletions
@@ -0,0 +1,18 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: argocd-hook-sa
namespace: vault
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: argocd-hook-sa-vault
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: argocd-hook-sa
namespace: vault