Skip to content

Commit

Permalink
clean-installations: fix pvc filtering
Browse files Browse the repository at this point in the history
Fix the label filter, as it could trigger the deletion of unrelated
PVCs.

Change-Id: If7843f8f7d5f81ab29b61566310a730ecfc9a29f
  • Loading branch information
mhuin committed Dec 18, 2023
1 parent 1898d1a commit bc7cf24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/clean-installations/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc7cf24

Please sign in to comment.