Skip to content

Commit

Permalink
d/s: CNF-12002 set METRICS_EXPORTER_PROMETHEUS_DEPLOY_RULES
Browse files Browse the repository at this point in the history
Make the operator creating PrometheusRules to browse
metrics in the Developer Console.

refs:
- k8snetworkplumbingwg/sriov-network-operator#732

Signed-off-by: Andrea Panattoni <[email protected]>
  • Loading branch information
zeeke committed Sep 20, 2024
1 parent 0e981dd commit 3d169ad
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ metadata:
categories: Networking
certified: "false"
containerImage: quay.io/openshift/origin-sriov-network-operator:4.18
createdAt: "2024-09-18T23:50:48Z"
createdAt: "2024-09-20T13:02:55Z"
description: An operator for configuring SR-IOV components and initializing SRIOV
network devices in Openshift cluster.
features.operators.openshift.io/cnf: "false"
Expand Down Expand Up @@ -404,6 +404,8 @@ spec:
value: metrics-exporter-cert
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_ENABLED
value: "true"
- name: METRICS_EXPORTER_PROMETHEUS_DEPLOY_RULES
value: "true"
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_NAMESPACE
value: openshift-monitoring
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_SERVICE_ACCOUNT
Expand Down Expand Up @@ -561,6 +563,8 @@ spec:
verbs:
- get
- create
- update
- delete
- apiGroups:
- apps
resourceNames:
Expand Down
2 changes: 2 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ spec:
value: metrics-exporter-cert
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_ENABLED
value: "true"
- name: METRICS_EXPORTER_PROMETHEUS_DEPLOY_RULES
value: "true"
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_NAMESPACE
value: openshift-monitoring
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_SERVICE_ACCOUNT
Expand Down
2 changes: 2 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ rules:
verbs:
- get
- create
- update
- delete
- apiGroups:
- apps
resourceNames:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ spec:
value: metrics-exporter-cert
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_ENABLED
value: "true"
- name: METRICS_EXPORTER_PROMETHEUS_DEPLOY_RULES
value: "true"
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_NAMESPACE
value: openshift-monitoring
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_SERVICE_ACCOUNT
Expand Down Expand Up @@ -561,6 +563,8 @@ spec:
verbs:
- get
- create
- update
- delete
- apiGroups:
- apps
resourceNames:
Expand Down

0 comments on commit 3d169ad

Please sign in to comment.