Skip to content

Commit

Permalink
Fix red-metrics test case (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
IshwarKanse authored Feb 13, 2024
1 parent b5f51e3 commit b236d23
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/e2e-openshift/red-metrics/06-assert.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kuttl-cluster-monitoring-view
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-monitoring-view
subjects:
- kind: ServiceAccount
name: prometheus-user-workload
namespace: openshift-user-workload-monitoring

---
apiVersion: batch/v1
kind: Job
metadata:
Expand Down
17 changes: 17 additions & 0 deletions tests/e2e-openshift/red-metrics/06-intall-assert-job.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Add the cluter role binding required for fetching metrics from Thanos querier. Refer https://issues.redhat.com/browse/MON-3379
# The ClusterRoleBinding step is not a Tempo requirement and is used only by the test case to check the metrics using the check_metrics.sh script.

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kuttl-cluster-monitoring-view
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-monitoring-view
subjects:
- kind: ServiceAccount
name: prometheus-user-workload
namespace: openshift-user-workload-monitoring

---
apiVersion: batch/v1
kind: Job
metadata:
Expand Down

0 comments on commit b236d23

Please sign in to comment.