Create app-argocd Application to manage argocd resources using kustomize. Update stack Application exclusion to allow Application manifests while excluding direct resource management (prevents namespace errors from directory recursion bypassing kustomization). Architecture: - stack Application manages Application manifests (app-*.yaml) - argocd Application manages argocd resources via kustomize - Both Applications can self-manage through this pattern Co-Authored-By: Paperclip <noreply@paperclip.ing>
20 lines
490 B
YAML
20 lines
490 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: argocd
|
|
namespace: argocd
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: git@forgejo.forgejo.svc.cluster.local:basicstack/stack.basicstack.de.git
|
|
targetRevision: main
|
|
path: apps/argocd
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: argocd
|
|
syncPolicy:
|
|
automated:
|
|
prune: false # Manual approval for deletions
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|