apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
  name: railiance-tenants
  namespace: argocd
  labels:
    app.kubernetes.io/part-of: railiance-gitops
    railiance-platform/component: gitops
spec:
  description: Guardrails for Railiance tenant applications deployed by ArgoCD.
  sourceRepos:
    - https://forgejo.coulomb.social/coulomb/*.git
    # Emergency rollback only (T12 Option A through 2026-08-07)
    - https://gitea.coulomb.social/coulomb/*.git
  destinations:
    - server: https://kubernetes.default.svc
      namespace: "*"
  clusterResourceWhitelist:
    - group: ""
      kind: Namespace
  namespaceResourceWhitelist:
    - group: ""
      kind: ConfigMap
    - group: ""
      kind: PersistentVolumeClaim
    - group: ""
      kind: Secret
    - group: ""
      kind: Service
    - group: ""
      kind: ServiceAccount
    - group: apps
      kind: Deployment
    - group: apps
      kind: StatefulSet
    - group: autoscaling
      kind: HorizontalPodAutoscaler
    - group: batch
      kind: CronJob
    - group: batch
      kind: Job
    - group: external-secrets.io
      kind: ExternalSecret
    - group: networking.k8s.io
      kind: Ingress
    - group: networking.k8s.io
      kind: NetworkPolicy
    - group: traefik.io
      kind: IngressRoute
    - group: traefik.io
      kind: Middleware
  orphanedResources:
    warn: true

