This commit is contained in:
Danijel Simeunovic
2026-02-08 13:36:48 +01:00
parent 774852bd1b
commit 08931e4677
3 changed files with 331 additions and 23 deletions

View File

@@ -1,26 +1,44 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
kind: ApplicationSet
metadata:
name: app-of-apps
name: infrastructure-apps
namespace: argocd
labels:
scope: infra
spec:
project: default
source:
repoURL: https://github.com/fortedigital/sturdy-adventure.git
targetRevision: HEAD
path: argocd
directory:
recurse: true
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- Validate=true
- ServerSideApply=true
goTemplate: true
generators:
- git:
repoURL: https://github.com/fortedigital/sturdy-adventure.git
revision: HEAD
directories:
- path: argocd/infra/*.yaml
template:
metadata:
name: "{{ .path.basenameNormalized }}"
labels:
app.kubernetes.io/name: "{{ .path.basenameNormalized }}"
app.kubernetes.io/part-of: platform
app.kubernetes.io/managed-by: argocd
spec:
project: default
source:
repoURL: https://github.com/fortedigital/sturdy-adventure.git
targetRevision: HEAD
path: "{{ .path.dir }}"
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- Validate=true
- ServerSideApply=true
timeout: 300s
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m