Skip to content

Commit 4889964

Browse files
include CRB
Signed-off-by: greg pereira <grpereir@redhat.com>
1 parent 8647e6d commit 4889964

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

config/openshift/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ resources:
55
- ../default
66
- cluster-monitoring-view-binding.yaml
77
- metrics-reader-token.yaml
8+
- prometheus-metrics-auth-binding.yaml
89

910
patches:
1011
- path: configmap-patch.yaml
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Grant the OpenShift user-workload-monitoring Prometheus SA permission to
2+
# authenticate to the WVA metrics endpoint (tokenreviews + subjectaccessreviews).
3+
apiVersion: rbac.authorization.k8s.io/v1
4+
kind: ClusterRoleBinding
5+
metadata:
6+
name: workload-variant-autoscaler-ocp-prometheus-metrics-auth
7+
roleRef:
8+
apiGroup: rbac.authorization.k8s.io
9+
kind: ClusterRole
10+
name: workload-variant-autoscaler-metrics-auth-role
11+
subjects:
12+
- kind: ServiceAccount
13+
name: prometheus-k8s
14+
namespace: openshift-user-workload-monitoring

0 commit comments

Comments
 (0)