apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: bootstrap
  namespace: {{ k8s_argocd_helm__release_namespace }}
spec:
  destination:
    namespace: {{ k8s_argocd_helm__release_namespace }}
    server: https://kubernetes.default.svc
  project: default
  source:
    path: .
    repoURL: {{ gitea_bootstrap_url }}
    targetRevision: main
    helm:
      valueFiles:
        - values.yaml
        - secrets+gpg-import-kubernetes://{{ k8s_argocd_helm__release_namespace }}/sops-gpg#gpg_key_smardigo_automation__private?secrets.yaml
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
    - CreateNamespace=true
