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