new approach
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: haven-apps
|
||||
namespace: argocd
|
||||
spec:
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://git.ivanch.me/ivanch/haven-ops.git
|
||||
revision: main
|
||||
files:
|
||||
- path: "apps/*/*.yaml"
|
||||
template:
|
||||
metadata:
|
||||
name: "{{path.filenameNormalized}}"
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://git.ivanch.me/ivanch/haven-ops.git
|
||||
targetRevision: main
|
||||
path: "{{path}}"
|
||||
directory:
|
||||
include: "{{path.filename}}"
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: "{{path[1]}}"
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
@@ -1,7 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- notepad.yaml
|
||||
# - argocd.yaml # enable once Argo CD itself is onboarded (self-managed)
|
||||
# - openwebui.yaml # future apps: one Application file each, listed here
|
||||
# - paperless.yaml
|
||||
- applicationset.yaml
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: notepad
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://git.ivanch.me/ivanch/haven-ops.git
|
||||
targetRevision: main
|
||||
path: apps/notepad
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
Reference in New Issue
Block a user