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,
|
namespace:: $.name,
|
||||||
syncOptions:: ["CreateNamespace=true"],
|
syncOptions:: ["CreateNamespace=true"],
|
||||||
retryLimit:: 5,
|
retryLimit:: 5,
|
||||||
|
sync_wave:: 0,
|
||||||
|
|
||||||
apiVersion: "argoproj.io/v1alpha1",
|
apiVersion: "argoproj.io/v1alpha1",
|
||||||
kind: "Application",
|
kind: "Application",
|
||||||
metadata: {
|
metadata: {
|
||||||
name: $.name,
|
name: $.name,
|
||||||
namespace: "argocd",
|
namespace: "argocd",
|
||||||
|
annotations: { "argocd.argoproj.io/sync-wave": std.toString($.sync_wave) },
|
||||||
finalizers: ["resources-finalizer.argocd.argoproj.io"],
|
finalizers: ["resources-finalizer.argocd.argoproj.io"],
|
||||||
},
|
},
|
||||||
spec: {
|
spec: {
|
||||||
|
|
|
@ -15,7 +15,8 @@ argoapp + {
|
||||||
repo:: "https://github.com/prometheus-community/helm-charts.git",
|
repo:: "https://github.com/prometheus-community/helm-charts.git",
|
||||||
path:: "charts/kube-prometheus-stack/crds/",
|
path:: "charts/kube-prometheus-stack/crds/",
|
||||||
version:: "kube-prometheus-stack-" + vars.version,
|
version:: "kube-prometheus-stack-" + vars.version,
|
||||||
syncOptions:: ["CreateNamespace=true", "Replace=true"]
|
syncOptions:: ["CreateNamespace=true", "Replace=true"],
|
||||||
|
sync_wave:: -1,
|
||||||
},
|
},
|
||||||
helmapp + {
|
helmapp + {
|
||||||
name:: "prometheus-grafana",
|
name:: "prometheus-grafana",
|
||||||
|
|
Loading…
Reference in a new issue