Add flux uninstall to delete_remote_cluster when PURGE set to true 20/15720/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 6 Feb 2026 12:05:56 +0000 (13:05 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 6 Feb 2026 12:05:56 +0000 (13:05 +0100)
Change-Id: I0b15fc4afd5fcce672fad19d9ad894de4185a4d7
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
docker/osm-krm-functions/scripts/library/krm-functions.rc

index 515dda6..951a54e 100644 (file)
@@ -1020,6 +1020,7 @@ function delete_remote_cluster() {
   # Perform the purge if needed
   if [[ "${PURGE,,}" == "true" ]]; then
     echo "Purging the remote Flux instalation..."
+    flux uninstall -s --namespace=flux-system
   fi
 
   echo "Deleting cluster profiles and (when applicable) its cloud resources..."