From fbcd8ac75c3690dd51554b7b59872efab1842c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Groothuis?= Date: Thu, 23 Oct 2025 14:01:32 +0200 Subject: [PATCH] chore(bootstrap): Added templating --- .templates/app-project.yaml | 17 +++++++++++++++++ .templates/application.yaml | 24 ++++++++++++++++++++++++ .templates/kustomization.yaml | 7 +++++++ 3 files changed, 48 insertions(+) create mode 100644 .templates/app-project.yaml create mode 100644 .templates/application.yaml create mode 100644 .templates/kustomization.yaml 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