diff options
author | Jeff Cantrill <jcantrill@users.noreply.github.com> | 2016-12-14 14:36:28 -0500 |
---|---|---|
committer | Jeff Cantrill <jcantril@redhat.com> | 2017-01-17 11:45:04 -0500 |
commit | ee931f90dbab01596bd90fa8007ac49de5178a17 (patch) | |
tree | e4230477b1748e76d5adfb123703ae5e5e16aade /roles/openshift_metrics/tasks/uninstall_metrics.yaml | |
parent | b6ce0464142403785a7ba8eae664286082f4d30e (diff) | |
download | openshift-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.yaml | 14 |
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 |