Use application set for mariadb operator
This commit is contained in:
parent
c9058dc067
commit
e2d0d193a4
1 changed files with 27 additions and 48 deletions
|
@ -1,53 +1,32 @@
|
||||||
---
|
---
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: ApplicationSet
|
||||||
metadata:
|
metadata:
|
||||||
name: mariadb-operator-crds
|
name: home-server-mariadb
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
spec:
|
spec:
|
||||||
project: default
|
generators:
|
||||||
source:
|
- list:
|
||||||
repoURL: "https://charts.mariadb.com/mariadb-operator"
|
elements:
|
||||||
chart: "mariadb-operator-crds"
|
- name: mariadb-operator
|
||||||
targetRevision: "0.38.1"
|
path: deploy
|
||||||
helm:
|
namespace: database
|
||||||
releaseName: "mariadb-operator-crds"
|
goTemplate: true
|
||||||
destination:
|
template:
|
||||||
server: "https://kubernetes.default.svc"
|
metadata:
|
||||||
namespace: database
|
name: "{{.name}}"
|
||||||
syncPolicy:
|
spec:
|
||||||
automated:
|
project: default
|
||||||
prune: true
|
source:
|
||||||
selfHeal: true
|
repoURL: https://github.com/mariadb-operator/mariadb-operator.git
|
||||||
syncOptions:
|
targetRevision: main
|
||||||
- CreateNamespace=true
|
path: "{{.path}}"
|
||||||
- ApplyOutOfSyncOnly=true
|
destination:
|
||||||
- SkipHooks=false
|
server: https://kubernetes.default.svc
|
||||||
- SyncWave=0 # ensure this is applied first
|
namespace: '{{.namespace"}}'
|
||||||
|
syncPolicy:
|
||||||
---
|
automated:
|
||||||
apiVersion: argoproj.io/v1alpha1
|
prune: true
|
||||||
kind: Application
|
selfHeal: true
|
||||||
metadata:
|
syncOptions:
|
||||||
name: mariadb-operator
|
- CreateNamespace=true
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: "https://charts.mariadb.com/mariadb-operator"
|
|
||||||
chart: "mariadb-operator"
|
|
||||||
targetRevision: "0.38.1"
|
|
||||||
helm:
|
|
||||||
releaseName: "mariadb-operator"
|
|
||||||
destination:
|
|
||||||
server: "https://kubernetes.default.svc"
|
|
||||||
namespace: database
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
selfHeal: true
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
- ApplyOutOfSyncOnly=true
|
|
||||||
- SkipHooks=false
|
|
||||||
- SyncWave=1 # ensure this waits for mariadb-operator-crds
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue