From 6fd8a5a518a95ea712fd637c81a93974a1a5bb90 Mon Sep 17 00:00:00 2001 From: Adam Lewis <23342526+Adam-D-Lewis@users.noreply.github.com> Date: Mon, 5 Aug 2024 18:02:35 -0500 Subject: [PATCH] try to delete resources --- .../services/rook-ceph/cluster-values.yaml.tftpl | 2 ++ .../stages/kubernetes_services/template/rook-ceph.tf | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/rook-ceph/cluster-values.yaml.tftpl b/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/rook-ceph/cluster-values.yaml.tftpl index 2c1253b6e5..62f8fb8149 100644 --- a/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/rook-ceph/cluster-values.yaml.tftpl +++ b/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/rook-ceph/cluster-values.yaml.tftpl @@ -13,6 +13,8 @@ cephClusterSpec: bdev_flock_retry: "20" bluefs_buffered_io: "false" mon_data_avail_warn: "10" + cleanupPolicy: + confirmation: "yes-really-destroy-data" placement: additionalProperties: nodeAffinity: diff --git a/src/_nebari/stages/kubernetes_services/template/rook-ceph.tf b/src/_nebari/stages/kubernetes_services/template/rook-ceph.tf index 1895d50d41..1f0778e6fd 100644 --- a/src/_nebari/stages/kubernetes_services/template/rook-ceph.tf +++ b/src/_nebari/stages/kubernetes_services/template/rook-ceph.tf @@ -51,5 +51,10 @@ resource "helm_release" "rook-ceph" { # var.overrides ) - # depends_on = [kubernetes_namespace.rook-ceph] + # Hack to wait for the operator to destroy existing resources before proceeding + # If kubectl were available, we could wait for the problematic resources specifically + provisioner "local-exec" { + command = "sleep 120" + when = destroy + } }