summaryrefslogtreecommitdiffstats
path: root/roles/openshift_metrics/tasks/uninstall_metrics.yaml
diff options
context:
space:
mode:
authorJeff Cantrill <jcantrill@users.noreply.github.com>2016-12-14 14:36:28 -0500
committerJeff Cantrill <jcantril@redhat.com>2017-01-17 11:45:04 -0500
commitee931f90dbab01596bd90fa8007ac49de5178a17 (patch)
treee4230477b1748e76d5adfb123703ae5e5e16aade /roles/openshift_metrics/tasks/uninstall_metrics.yaml
parentb6ce0464142403785a7ba8eae664286082f4d30e (diff)
downloadopenshift-ee931f90dbab01596bd90fa8007ac49de5178a17.tar.gz
openshift-ee931f90dbab01596bd90fa8007ac49de5178a17.tar.bz2
openshift-ee931f90dbab01596bd90fa8007ac49de5178a17.tar.xz
openshift-ee931f90dbab01596bd90fa8007ac49de5178a17.zip
Add tasks to uninstall metrics (#7)
Diffstat (limited to 'roles/openshift_metrics/tasks/uninstall_metrics.yaml')
-rw-r--r--roles/openshift_metrics/tasks/uninstall_metrics.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/openshift_metrics/tasks/uninstall_metrics.yaml b/roles/openshift_metrics/tasks/uninstall_metrics.yaml
new file mode 100644
index 000000000..a29faef31
--- /dev/null
+++ b/roles/openshift_metrics/tasks/uninstall_metrics.yaml
@@ -0,0 +1,14 @@
+---
+- name: remove metrics components
+ command: >
+ {{ openshift.common.client_binary }} -n '{{ openshift_metrics_project }}'
+ delete --selector=metrics-infra
+ all,sa,secrets,templates,routes,pvc,rolebindings,clusterrolebindings
+ register: delete_metrics
+ changed_when: "delete_metrics.stdout != 'No resources found'"
+- name: remove rolebindings
+ command: >
+ {{ openshift.common.client_binary }} -n {{ openshift_metrics_project }}
+ delete --ignore-not-found
+ rolebinding/hawkular-view
+ clusterrolebinding/heapster-cluster-reader