From 3df58b8bfac04063fca669de347efa9ec0826d95 Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Fri, 13 Mar 2026 05:59:40 +0200 Subject: [PATCH] Migration to applicationset --- applicationset.yaml | 30 ++++++++++++++++++++++++++++++ apps-config.yaml | 18 ++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 applicationset.yaml create mode 100644 apps-config.yaml diff --git a/applicationset.yaml b/applicationset.yaml new file mode 100644 index 0000000..b32efaf --- /dev/null +++ b/applicationset.yaml @@ -0,0 +1,30 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: infra-apps + namespace: argocd +spec: + generators: + - git: + repoURL: ssh://git@gitea-ssh.dev-tools.svc.cluster.local.:2222/dvirlabs/infra.git + revision: HEAD + files: + - path: apps-config.yaml + + template: + metadata: + name: '{{name}}' + spec: + project: '{{project}}' + + source: + repoURL: '{{repoURL}}' + targetRevision: '{{targetRevision}}' + path: '{{chartPath}}' + helm: + valueFiles: + - '{{valuesFile}}' + + destination: + server: https://kubernetes.default.svc + namespace: '{{namespace}}' \ No newline at end of file diff --git a/apps-config.yaml b/apps-config.yaml new file mode 100644 index 0000000..06d525b --- /dev/null +++ b/apps-config.yaml @@ -0,0 +1,18 @@ +apps: + - name: argocd + namespace: argocd + project: infra + repoURL: ssh://git@gitea-ssh.dev-tools.svc.cluster.local.:2222/dvirlabs/infra.git + targetRevision: HEAD + chartPath: charts/argocd + valuesFile: ../../manifests/argocd/values.yaml + autoSync: false + + - name: keycloak + namespace: infra + project: infra + repoURL: ssh://git@gitea-ssh.dev-tools.svc.cluster.local.:2222/dvirlabs/infra.git + targetRevision: HEAD + chartPath: charts/keycloak + valuesFile: ../../manifests/keycloak/values.yaml + autoSync: false \ No newline at end of file