From 330d14c199e206599ee765336937abd328856eb0 Mon Sep 17 00:00:00 2001
From: Nacho Barrientos <nacho.barrientos@cern.ch>
Date: Tue, 11 Mar 2025 14:08:27 +0100
Subject: [PATCH] Ask to delete existing CRDs before installing the chart

---
 docs/getting_started.md | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/docs/getting_started.md b/docs/getting_started.md
index bb12f09..4062559 100644
--- a/docs/getting_started.md
+++ b/docs/getting_started.md
@@ -14,7 +14,15 @@ Before you begin, ensure you have the following:
 
 ## 1. Install the CERN IT Monitoring Helm Repository
 
-First, install the official **CERN IT Monitoring** Helm chart repository from your Helm client. Remember to substitute the `<gitlab-tag>` with the version you want to install (ex. `1.0.0-rc1`).
+If the Kubernetes cluster you're targeting has any CRD of the
+Prometheus operator ecosystem already installed please first delete
+them all before proceeding by executing:
+
+```bash
+kubectl get customresourcedefinitions -ojson | jq  '.items[] | select(.spec.group | test("monitoring\\.coreos\\.com$")) | .metadata.name' | xargs -n 1 kubectl delete customresourcedefinitions
+```
+
+Secondly, install the official **CERN IT Monitoring** Helm chart repository from your Helm client. Remember to substitute the `<gitlab-tag>` with the version you want to install (ex. `1.0.0-rc1`).
 We recommend installing the chart in the `monitoring` namespace. If it does not exists you can create it.
 
 ```bash
-- 
GitLab