Migration to applicationset

This commit is contained in:
dvirlabs 2026-03-13 05:59:40 +02:00
parent e69756aecf
commit 3df58b8bfa
2 changed files with 48 additions and 0 deletions

30
applicationset.yaml Normal file
View File

@ -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}}'

18
apps-config.yaml Normal file
View File

@ -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