diff --git a/step3/infrastructure/prometheus.tf b/step3/infrastructure/prometheus.tf index 0ce8bce..dc722f2 100644 --- a/step3/infrastructure/prometheus.tf +++ b/step3/infrastructure/prometheus.tf @@ -39,6 +39,23 @@ kubectl patch ds prometheus-prometheus-node-exporter --type json -p '[{"op": "re } } +resource "null_resource" "prometheus_crd_on_destroy" { + depends_on = [helm_release.prometheus] + provisioner "local-exec" { + when = destroy + command = <