Create the following resource in your argocd autopilot's projects directory
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: example-preview-envs
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "2"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
description: Example Domain Production Environment
sourceRepos:
- '*'
destinations:
- namespace: '*'
server: https://kubernetes.default.svc
clusterResourceWhitelist:
- group: '*'
kind: '*'
namespaceResourceWhitelist:
- group: '*'
kind: '*'
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: example-preview-envs
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "3"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: example-preview-envs
source:
repoURL: https://github.com/cloudnativeentrepreneur/example-preview-envs.git
targetRevision: HEAD
path: helm
destination:
server: https://kubernetes.default.svc
namespace: example-preview-envs
syncPolicy:
automated:
selfHeal: true
prune: true
syncOptions:
- CreateNamespace=true