concept
Argo CD objects and safety
An AppProject constrains sources, destinations and resource kinds. The complete fixture allows only one exact repository and one fictional namespace/server pair; its permitted namespaced kinds are Deployment and ConfigMap. It explicitly denies cluster-scoped resources through an empty cluster resource whitelist. Never permit a tenant to deploy into the Argo CD control namespace, which can undermine project boundaries. Restrict who can edit Application and AppProject objects, repository access and cluster credentials. Project rules complement rather than replace Kubernetes RBAC and admission.
Formal Syntax & Structure
kubernetes syntaxkubernetes
spec: sourceRepos: - https://git.example.invalid/bookstore/config.git destinations: - server: https://cluster.example.invalid namespace: bookstore-lab clusterResourceWhitelist: [] namespaceResourceWhitelist: - group: apps kind: Deployment - group: "" kind: ConfigMapWorking Example
Example Snippetkubernetes
spec: sourceRepos: - https://git.example.invalid/bookstore/config.git destinations: - server: https://cluster.example.invalid namespace: bookstore-lab clusterResourceWhitelist: [] namespaceResourceWhitelist: - group: apps kind: Deployment - group: "" kind: ConfigMap