From 2b2e791b27076ce1e26494d3f83beb152e7dc927 Mon Sep 17 00:00:00 2001 From: Victor Login Date: Sat, 18 Feb 2023 05:55:19 +0300 Subject: [PATCH] argocd: move grafana stack from infrastructure to observability Signed-off-by: Victor Login --- .../templates/observability.yaml | 34 +++++++++++++++++++ .../grafana-loki/application.yaml | 0 .../grafana-tempo/application.yaml | 0 .../grafana/application.yaml | 0 .../pyroscope/application.yaml | 0 5 files changed, 34 insertions(+) create mode 100644 ops/Helm/addons/argocd-shortlink/templates/observability.yaml rename ops/argocd/{infrastructure => observability}/grafana-loki/application.yaml (100%) rename ops/argocd/{infrastructure => observability}/grafana-tempo/application.yaml (100%) rename ops/argocd/{infrastructure => observability}/grafana/application.yaml (100%) rename ops/argocd/{infrastructure => observability}/pyroscope/application.yaml (100%) diff --git a/ops/Helm/addons/argocd-shortlink/templates/observability.yaml b/ops/Helm/addons/argocd-shortlink/templates/observability.yaml new file mode 100644 index 00000000000..60bfee1e71c --- /dev/null +++ b/ops/Helm/addons/argocd-shortlink/templates/observability.yaml @@ -0,0 +1,34 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: observability + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + generators: + - list: + elements: + - cluster: in-cluster + url: https://kubernetes.default.svc + template: + metadata: + name: observability + spec: + project: shortlink + source: + repoURL: 'https://github.com/shortlink-org/shortlink' + targetRevision: HEAD + path: ops/argocd/observability + directory: + recurse: true + destination: + name: '' + namespace: argocd + server: 'https://kubernetes.default.svc' + syncPolicy: + automated: + prune: true + allowEmpty: true + selfHeal: false + syncPolicy: + preserveResourcesOnDeletion: false diff --git a/ops/argocd/infrastructure/grafana-loki/application.yaml b/ops/argocd/observability/grafana-loki/application.yaml similarity index 100% rename from ops/argocd/infrastructure/grafana-loki/application.yaml rename to ops/argocd/observability/grafana-loki/application.yaml diff --git a/ops/argocd/infrastructure/grafana-tempo/application.yaml b/ops/argocd/observability/grafana-tempo/application.yaml similarity index 100% rename from ops/argocd/infrastructure/grafana-tempo/application.yaml rename to ops/argocd/observability/grafana-tempo/application.yaml diff --git a/ops/argocd/infrastructure/grafana/application.yaml b/ops/argocd/observability/grafana/application.yaml similarity index 100% rename from ops/argocd/infrastructure/grafana/application.yaml rename to ops/argocd/observability/grafana/application.yaml diff --git a/ops/argocd/infrastructure/pyroscope/application.yaml b/ops/argocd/observability/pyroscope/application.yaml similarity index 100% rename from ops/argocd/infrastructure/pyroscope/application.yaml rename to ops/argocd/observability/pyroscope/application.yaml