|
@@ -6,7 +6,7 @@
|
|
|
command: >
|
|
|
{{ openshift.common.client_binary }} -n {{ openshift_metrics_project }} --config={{ mktemp.stdout }}/admin.kubeconfig
|
|
|
delete --ignore-not-found --selector=metrics-infra
|
|
|
- all,sa,secrets,templates,routes,pvc,rolebindings,clusterrolebindings
|
|
|
+ all,sa,secrets,templates,routes,pvc,rolebindings,clusterrolebindings,clusterrole
|
|
|
register: delete_metrics
|
|
|
changed_when: delete_metrics.stdout != 'No resources found'
|
|
|
|
|
@@ -16,4 +16,5 @@
|
|
|
delete --ignore-not-found
|
|
|
rolebinding/hawkular-view
|
|
|
clusterrolebinding/heapster-cluster-reader
|
|
|
+ clusterrolebinding/hawkular-metrics
|
|
|
changed_when: delete_metrics.stdout != 'No resources found'
|