1
0
Fork 0

feat: add universal appset system-upgrade-controller and universal-apps app

This commit is contained in:
Vojtěch Mareš 2023-10-02 10:05:57 +02:00
parent 5d29e8b657
commit 939f846654
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cherry-universal-apps
namespace: argocd
spec:
project: argocd
syncPolicy:
automated:
prune: true
selfHeal: true
destination:
server: https://kubernetes.default.svc
namespace: argocd
source:
path: universal/
repoURL: https://github.com/vojtechmares/gitops.git
targetRevision: HEAD

View file

@ -0,0 +1,30 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: universal-system-upgrade-controller
spec:
generators:
- list:
elements:
- cluster: cherry
url: https://kubernetes.default.svc
syncPolicy:
applicationsSync: sync
template:
metadata:
name: "{{cluster}}-system-upgrade-controller"
spec:
project: infrastructure
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
source:
repoURL: https://github.com/rancher/system-upgrade-controller.git
targetRevision: v0.13.1
path: manifests/
destination:
server: "{{url}}"
namespace: system-upgrade