From 0011050e53170a52b2ff2d620c1c125f63ce755a Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Tue, 22 Apr 2025 17:25:50 -0400 Subject: [PATCH] updated infra appproj --- charts/infrastructure/Chart.yaml | 2 +- .../infrastructure/templates/argocd-appset.yml | 2 +- .../templates/argocd-projects.yaml | 18 ++++++++++++++++++ .../infrastructure/templates/argocd-repo.yaml | 2 +- 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 charts/infrastructure/templates/argocd-projects.yaml diff --git a/charts/infrastructure/Chart.yaml b/charts/infrastructure/Chart.yaml index 40b038e..be4344a 100644 --- a/charts/infrastructure/Chart.yaml +++ b/charts/infrastructure/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: cluster description: An infrastructure collection of manifests for homelab type: application -version: 0.1.8 +version: 0.1.9 diff --git a/charts/infrastructure/templates/argocd-appset.yml b/charts/infrastructure/templates/argocd-appset.yml index a1bbbeb..f0fecba 100644 --- a/charts/infrastructure/templates/argocd-appset.yml +++ b/charts/infrastructure/templates/argocd-appset.yml @@ -23,7 +23,7 @@ spec: destination: namespace: "{{`{{path.basename}}`}}" server: https://kubernetes.default.svc - project: default + project: main revisionHistoryLimit: 10 source: path: '{{`{{path}}`}}' diff --git a/charts/infrastructure/templates/argocd-projects.yaml b/charts/infrastructure/templates/argocd-projects.yaml new file mode 100644 index 0000000..937c824 --- /dev/null +++ b/charts/infrastructure/templates/argocd-projects.yaml @@ -0,0 +1,18 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: main + namespace: "{{ .Values.ns.argocd }}" +spec: + description: "Main Project" + clusterResourceWhitelist: + - group: '*' + kind: '*' + destinations: + - namespace: '*' + server: '*' + sourceRepos: + - '*' + orphanedResources: + warn: true diff --git a/charts/infrastructure/templates/argocd-repo.yaml b/charts/infrastructure/templates/argocd-repo.yaml index cb935dd..f5705a0 100644 --- a/charts/infrastructure/templates/argocd-repo.yaml +++ b/charts/infrastructure/templates/argocd-repo.yaml @@ -5,7 +5,7 @@ metadata: labels: argocd.argoproj.io/secret-type: repository name: homelab - namespace: plugin-argo-cd + namespace: "{{ .Values.ns.argocd }}" type: Opaque stringData: name: homelab