diff --git a/.templates/app-project.yaml b/.templates/app-project.yaml new file mode 100644 index 0000000..83b6dad --- /dev/null +++ b/.templates/app-project.yaml @@ -0,0 +1,17 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: ${APPLICATION_NAME} +spec: + description: ${DESCRIPTION} + sourceRepos: + - '*' + sourceNamespaces: + - '*' + destinations: + - namespace: '${APPLICATION_NAME}' + server: '*' + clusterResourceWhitelist: + - group: '*' + kind: '*' diff --git a/.templates/application.yaml b/.templates/application.yaml new file mode 100644 index 0000000..775165f --- /dev/null +++ b/.templates/application.yaml @@ -0,0 +1,24 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: ${APPLICATION_NAME} + namespace: ${APPLICATION_NAME} + labels: + platform.dgse.cloud/cluster: artemis + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: ${APPLICATION_NAME} + source: + repoURL: 'https://git.dgse.cloud/DGSE/kubernetes.git' + path: manifests/artemis/${APPLICATION_NAME} + targetRevision: main + destination: + namespace: ${APPLICATION_NAME} + name: in-cluster + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + prune: true + selfHeal: true diff --git a/.templates/kustomization.yaml b/.templates/kustomization.yaml new file mode 100644 index 0000000..f9b2a4b --- /dev/null +++ b/.templates/kustomization.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - app-project.yaml + - application.yaml