# ArgoCD Application for the BlueCap Strategies site.
# Bootstrap: apply once (`kubectl apply -f argocd/bcs-website-application.yaml`) or add to the
# homelab-gitops app-of-apps. Kept OUT of k8s/ so ArgoCD does not try to manage this CR as part
# of the app itself. ArgoCD reaches Gitea over the internal HTTP URL (same as homelab-gitops).
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: bcs-website
  namespace: argocd
spec:
  project: default
  source:
    repoURL: http://10.66.15.22:3000/bmr_bluecap/bcs-website.git
    targetRevision: main
    path: k8s
  destination:
    server: https://kubernetes.default.svc
    namespace: bluecap-strategies
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true
