From 16c47e573a482513d315c5d43297d79cea36c362 Mon Sep 17 00:00:00 2001 From: Mathod Date: Mon, 17 Nov 2025 20:58:57 +0100 Subject: [PATCH] Added project 'production' --- bootstrap/projects/production.yaml | 93 ++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 bootstrap/projects/production.yaml diff --git a/bootstrap/projects/production.yaml b/bootstrap/projects/production.yaml new file mode 100644 index 0000000..9a2b1a3 --- /dev/null +++ b/bootstrap/projects/production.yaml @@ -0,0 +1,93 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: kind-production + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: production + namespace: argocd +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: production project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: production + namespace: argocd +spec: + generators: + - git: + files: + - path: bootstrap/apps/**/production/config.json + repoURL: https://gitea.mathod.fr/mathod/infra.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + - git: + files: + - path: bootstrap/apps/**/production/config_dir.json + repoURL: https://gitea.mathod.fr/mathod/infra.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + name: production-{{ userGivenName }} + namespace: argocd + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: production + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {}