summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging/tasks
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-08-31 07:55:05 -0400
committerGitHub <noreply@github.com>2017-08-31 07:55:05 -0400
commit4436451212ce5d5cc43fcafee13ea7e344997f27 (patch)
tree457e3d9b9b74b6dd2b9705f4c8f222216316bb61 /roles/openshift_logging/tasks
parentd57f27bf71f68ba91996bc4a0b1e79b3be956b7e (diff)
parent51a2d9dbadea02f22168629d44ff339b3c45d6d1 (diff)
downloadopenshift-4436451212ce5d5cc43fcafee13ea7e344997f27.tar.gz
openshift-4436451212ce5d5cc43fcafee13ea7e344997f27.tar.bz2
openshift-4436451212ce5d5cc43fcafee13ea7e344997f27.tar.xz
openshift-4436451212ce5d5cc43fcafee13ea7e344997f27.zip
Merge pull request #5189 from wozniakjan/logging_purge_uninstall
Merged by openshift-bot
Diffstat (limited to 'roles/openshift_logging/tasks')
-rw-r--r--roles/openshift_logging/tasks/delete_logging.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/openshift_logging/tasks/delete_logging.yaml b/roles/openshift_logging/tasks/delete_logging.yaml
index 6d023a02d..45298e345 100644
--- a/roles/openshift_logging/tasks/delete_logging.yaml
+++ b/roles/openshift_logging/tasks/delete_logging.yaml
@@ -14,6 +14,16 @@
- templates
- ds
+# return all persistent volume claims as well if purge is set
+- name: delete logging pvc objects
+ oc_obj:
+ state: absent
+ kind: pvc
+ namespace: "{{ openshift_logging_namespace }}"
+ selector: "logging-infra"
+ when:
+ - openshift_logging_purge_logging | default(false) | bool
+
# delete the oauthclient
- name: delete oauthclient kibana-proxy
oc_obj: