FEAT: force prometheus crds to sync first
* introduce sync_wave parameter
This commit is contained in:
parent
2b8efdd3a4
commit
568a6f9a7b
2 changed files with 4 additions and 1 deletions
|
@ -4,12 +4,14 @@
|
|||
namespace:: $.name,
|
||||
syncOptions:: ["CreateNamespace=true"],
|
||||
retryLimit:: 5,
|
||||
sync_wave:: 0,
|
||||
|
||||
apiVersion: "argoproj.io/v1alpha1",
|
||||
kind: "Application",
|
||||
metadata: {
|
||||
name: $.name,
|
||||
namespace: "argocd",
|
||||
annotations: { "argocd.argoproj.io/sync-wave": std.toString($.sync_wave) },
|
||||
finalizers: ["resources-finalizer.argocd.argoproj.io"],
|
||||
},
|
||||
spec: {
|
||||
|
|
|
@ -15,7 +15,8 @@ argoapp + {
|
|||
repo:: "https://github.com/prometheus-community/helm-charts.git",
|
||||
path:: "charts/kube-prometheus-stack/crds/",
|
||||
version:: "kube-prometheus-stack-" + vars.version,
|
||||
syncOptions:: ["CreateNamespace=true", "Replace=true"]
|
||||
syncOptions:: ["CreateNamespace=true", "Replace=true"],
|
||||
sync_wave:: -1,
|
||||
},
|
||||
helmapp + {
|
||||
name:: "prometheus-grafana",
|
||||
|
|
Loading…
Reference in a new issue