# gitops-demo child Application — now Helm-based, using the shared chart. # # MULTI-SOURCE explained: ArgoCD lets an Application pull from more than one # source. We use two, BOTH pointing at this same manifest repo: # 1. ref: values — exposes the repo as "$values" so we can reference a file # from it (the per-service values.yaml). # 2. path: charts/app — the generic chart, rendered with that values file. # This keeps the chart shared and each service's values in its own clean file, # instead of duplicating manifests or inlining values here. # # NOTE: replace REPLACE_WITH_MANIFEST_REPO_URL in BOTH sources with the real # repo URL (same as before — ArgoCD reads these straight from git). apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: gitops-demo-dev namespace: argocd spec: project: default sources: - repoURL: https://gitea.lgkentang.com/darren.maverick/k3s-manifests.git targetRevision: HEAD ref: values - repoURL: https://gitea.lgkentang.com/darren.maverick/k3s-manifests.git targetRevision: HEAD path: charts/app helm: valueFiles: - $values/gitops-demo/dev/values.yaml destination: server: https://kubernetes.default.svc namespace: dev syncPolicy: automated: prune: true selfHeal: true syncOptions: - CreateNamespace=true