diff --git a/argocd/app-of-apps/test/Chart.yaml b/argocd/app-of-apps/test/Chart.yaml new file mode 100644 index 0000000..c0c9382 --- /dev/null +++ b/argocd/app-of-apps/test/Chart.yaml @@ -0,0 +1,5 @@ +apiVersion: v2 +name: app-of-apps +description: Configuration chart for ArgoCD to monitor +type: application +version: 0.1.0 diff --git a/argocd/app-of-apps/test/templates/applications.yaml b/argocd/app-of-apps/test/templates/applications.yaml new file mode 100644 index 0000000..292423f --- /dev/null +++ b/argocd/app-of-apps/test/templates/applications.yaml @@ -0,0 +1,19 @@ +{{- range .Values.applications }} +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: {{ .name }} + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: argocd + server: {{ $.Values.overall.destinationServer }} + project: {{ .project }} + source: + path: argocd/{{ .name }}/{{ $.Values.overall.environment }} + repoURL: https://git.2martens.de/2martens/cloud-configuration/ + targetRevision: {{ .targetRevision }} +{{- end }} diff --git a/argocd/app-of-apps/test/values.yaml b/argocd/app-of-apps/test/values.yaml new file mode 100644 index 0000000..2c536f3 --- /dev/null +++ b/argocd/app-of-apps/test/values.yaml @@ -0,0 +1,20 @@ +applications: + - name: configserver + project: default + targetRevision: main + - name: kafka + project: default + targetRevision: main + - name: zookeeper + project: default + targetRevision: main + - name: wahlrecht + project: default + targetRevision: main + - name: vault-secrets-operator + project: default + targetRevision: main + +overall: + destinationServer: https://kubernetes.default.svc + environment: test