diff options
author | Jeff Cantrill <jcantrill@users.noreply.github.com> | 2016-12-14 14:40:36 -0500 |
---|---|---|
committer | Jeff Cantrill <jcantril@redhat.com> | 2017-01-17 11:45:04 -0500 |
commit | 84b1c4848f610c5792809bb2e9e5b0d8f77ea50c (patch) | |
tree | 0d47f74415ed4b547fdaafa8a897ee75ca0f0ecb /roles/openshift_metrics/tasks/uninstall_metrics.yaml | |
parent | ee931f90dbab01596bd90fa8007ac49de5178a17 (diff) | |
download | openshift-84b1c4848f610c5792809bb2e9e5b0d8f77ea50c.tar.gz openshift-84b1c4848f610c5792809bb2e9e5b0d8f77ea50c.tar.bz2 openshift-84b1c4848f610c5792809bb2e9e5b0d8f77ea50c.tar.xz openshift-84b1c4848f610c5792809bb2e9e5b0d8f77ea50c.zip |
copy admin cert for use in subsequent tasks (#8)
Diffstat (limited to 'roles/openshift_metrics/tasks/uninstall_metrics.yaml')
-rw-r--r-- | roles/openshift_metrics/tasks/uninstall_metrics.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_metrics/tasks/uninstall_metrics.yaml b/roles/openshift_metrics/tasks/uninstall_metrics.yaml index a29faef31..cf9b5171c 100644 --- a/roles/openshift_metrics/tasks/uninstall_metrics.yaml +++ b/roles/openshift_metrics/tasks/uninstall_metrics.yaml @@ -1,14 +1,14 @@ --- - name: remove metrics components command: > - {{ openshift.common.client_binary }} -n '{{ openshift_metrics_project }}' + {{ openshift.common.client_binary }} -n {{ openshift_metrics_project }} --config={{ mktemp.stdout }}/admin.kubeconfig 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 }} + {{ openshift.common.client_binary }} -n {{ openshift_metrics_project }} --config={{ mktemp.stdout }}/admin.kubeconfig delete --ignore-not-found rolebinding/hawkular-view clusterrolebinding/heapster-cluster-reader |