Skip to content

Commit 6851a46

Browse files
authored
Merge pull request #315 from bcgov/argocd_nonprod
Add ArgoCD nonprod info
2 parents 839d046 + 73e8ea5 commit 6851a46

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

src/docs/automation-and-resiliency/argo-cd-usage.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ sort_order: 6
1919
---
2020

2121
# Argo CD usage
22-
Last updated: **July 15, 2024**
22+
Last updated: **March 18, 2025**
2323

2424
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes (the foundation of OpenShift). It is efficient, well supported, and well documented.
2525

@@ -39,6 +39,7 @@ It is available to any team on the B.C. government's OpenShift platform and can
3939
* [Create applications in Argo CD](#create-applications-in-argo-cd)
4040
* [Configure your project](#configure-your-project)
4141
* [Optional GitHub Webhook](#optional-github-webhook)
42+
* [Nonprod access](#nonprod-access)
4243
* [Related pages](#related-pages)
4344

4445
## Why Argo CD is good for you
@@ -344,6 +345,15 @@ Click "Add webhook"
344345

345346
After saving the webhook, a repo action of the type that you specified should trigger a call to Argo CD's webhook API, causing your apps to refresh.
346347

348+
## Nonprod access
349+
A second ArgoCD project is created for non-prod access. It is configured with access to the dev, test, and tools namespaces, but not prod.
350+
351+
If you have users that should have access to ArgoCD, but that should not be able to deploy to your prod environment, add them to the `nonprod` list in the GitOpsTeam's `projectMembers` section. If you would like them to be able to view the prod ArgoCD apps, then also add them to the `readers` list under `projectMembers`.
352+
353+
'maintainers' and 'readers' will be able to see apps in both the default and nonprod projects.
354+
355+
Note that although the nonprod project has permission to deploy to the `tools` namespace, it cannot overwrite a GitOpsTeam or GitOpsAlliance resource there.
356+
347357
## Related pages
348358

349359
* [Current Argo CD version, as of February 2025: v2.13](https://github.com/argoproj/argo-cd/tree/v2.13.1)

src/files/argocd/gitopsteam_template.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ spec:
6161
# Project Maintainers have full access to the Argo CD Project, including the
6262
# ability create, edit, and delete Applications within the Project
6363
maintainers:
64-
- myGitHubID@github
64+
- seniorDevID@github
65+
66+
nonprod:
67+
- contractor1@github
68+
- juniorDevID@github
6569

6670
# Project Readers have read-only access to the Project in the Argo CD UI
6771
readers:
72+

0 commit comments

Comments
 (0)