docs(gitops): single Argo CD README, remove redundant docs

Made-with: Cursor
This commit is contained in:
timotheereausanofi
2026-03-20 12:06:20 +01:00
parent 1dc04c9fc5
commit 3e5dfaa1cb
7 changed files with 190 additions and 201 deletions

View File

@@ -1,27 +0,0 @@
# Argo CD Application
Apply the Application:
```bash
kubectl apply -f gitops/argocd/application.yaml
```
## Migrating from `spec.source` to `spec.sources`
If the `onelab` Application was created **before** the observability stack, the live object may still have **`spec.source`** only. A plain `kubectl apply` of the new manifest often **does not remove** `spec.source`, so Argo never reconciles the second chart (Loki/Promtail/Grafana).
**Check:**
```bash
kubectl get application onelab -n argocd -o jsonpath='{.spec.source}{"\n"}{.spec.sources}{"\n"}'
```
If `source` is set and `sources` is empty, patch once:
```bash
kubectl patch application onelab -n argocd --type json --patch-file gitops/argocd/jsonpatch-multisource.json
```
Then sync the app in Argo (or wait for auto-sync).
Adjust `repoURL` in `jsonpatch-multisource.json` if your remote differs.

View File

@@ -2,7 +2,7 @@
# Requires Argo CD 2.6+ (spec.sources). Ensure repoURL matches your remote.
#
# If you already had this Application with spec.source only, kubectl apply may not drop
# source — see README.md in this folder and jsonpatch-multisource.json.
# source — see gitops/README.md (Migrating spec.source → spec.sources) and jsonpatch-multisource.json.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata: