From bc7cf24ddf1bc5b5bba0bb1c69eed9db19bb46c3 Mon Sep 17 00:00:00 2001 From: Matthieu Huin Date: Mon, 18 Dec 2023 12:13:07 +0100 Subject: [PATCH] clean-installations: fix pvc filtering Fix the label filter, as it could trigger the deletion of unrelated PVCs. Change-Id: If7843f8f7d5f81ab29b61566310a730ecfc9a29f --- roles/clean-installations/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/clean-installations/tasks/main.yaml b/roles/clean-installations/tasks/main.yaml index 45b32d21..e409b291 100644 --- a/roles/clean-installations/tasks/main.yaml +++ b/roles/clean-installations/tasks/main.yaml @@ -53,7 +53,7 @@ - sf_delete_instance - name: Release PVCs created by the Software Factory operator in the sf namespace - ansible.builtin.command: kubectl -n sf delete pvc -l app=sf -l run!=gerrit + ansible.builtin.command: kubectl -n sf delete pvc -l 'app in (sf),run notin (gerrit)' ignore_errors: true tags: - skip_ansible_lint