Skip to content

Commit

Permalink
d/s: CSV adjustment for sriov-network-metrics-exporter
Browse files Browse the repository at this point in the history
Update ClusterServiceVersion with the new permissions and environment variables.

Add `operatorframework.io/cluster-monitoring: true` annotation to make the operator
namespace be watched by the monitoring stack, when installing via web console.

Signed-off-by: Andrea Panattoni <[email protected]>
  • Loading branch information
zeeke committed Jul 29, 2024
1 parent 8fc0b41 commit 6227fc6
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 2 deletions.
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.17
createdAt: "2024-05-30T16:54:58Z"
createdAt: "2024-07-29T07:35:08Z"
description: An operator for configuring SR-IOV components and initializing SRIOV
network devices in Openshift cluster.
features.operators.openshift.io/cnf: "false"
Expand All @@ -114,6 +114,7 @@ metadata:
features.operators.openshift.io/token-auth-azure: "false"
features.operators.openshift.io/token-auth-gcp: "false"
olm.skipRange: '>=4.3.0-0 <4.17.0'
operatorframework.io/cluster-monitoring: "true"
operatorframework.io/initialization-resource: |-
{
"apiVersion": "sriovnetwork.openshift.io/v1",
Expand Down Expand Up @@ -392,6 +393,20 @@ spec:
value: operator-webhook-service
- name: ADMISSION_CONTROLLERS_CERTIFICATES_INJECTOR_SECRET_NAME
value: network-resources-injector-secret
- name: METRICS_EXPORTER_IMAGE
value: quay.io/openshift/origin-sriov-network-metrics-exporter:4.17
- name: METRICS_EXPORTER_KUBE_RBAC_PROXY_IMAGE
value: quay.io/openshift/origin-kube-rbac-proxy:4.17
- name: METRICS_EXPORTER_SECRET_NAME
value: metrics-exporter-cert
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_ENABLED
value: "true"
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_NAMESPACE
value: openshift-monitoring
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_SERVICE_ACCOUNT
value: prometheus-k8s
- name: METRICS_EXPORTER_PORT
value: "9110"
- name: NAMESPACE
valueFrom:
fieldRef:
Expand Down Expand Up @@ -539,6 +554,7 @@ spec:
- monitoring.coreos.com
resources:
- servicemonitors
- prometheusrules
verbs:
- get
- create
Expand Down
14 changes: 14 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,20 @@ spec:
value: operator-webhook-service
- name: ADMISSION_CONTROLLERS_CERTIFICATES_INJECTOR_SECRET_NAME
value: network-resources-injector-secret
- name: METRICS_EXPORTER_IMAGE
value: quay.io/openshift/origin-sriov-network-metrics-exporter:4.17
- name: METRICS_EXPORTER_KUBE_RBAC_PROXY_IMAGE
value: quay.io/openshift/origin-kube-rbac-proxy:4.17
- name: METRICS_EXPORTER_SECRET_NAME
value: metrics-exporter-cert
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_ENABLED
value: "true"
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_NAMESPACE
value: openshift-monitoring
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_SERVICE_ACCOUNT
value: prometheus-k8s
- name: METRICS_EXPORTER_PORT
value: "9110"
- name: NAMESPACE
valueFrom:
fieldRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ metadata:
features.operators.openshift.io/token-auth-azure: "false"
features.operators.openshift.io/token-auth-gcp: "false"
olm.skipRange: '>=4.3.0-0 <4.17.0'
operatorframework.io/cluster-monitoring: "true"
operatorframework.io/initialization-resource: |-
{
"apiVersion": "sriovnetwork.openshift.io/v1",
Expand Down
1 change: 1 addition & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ rules:
- monitoring.coreos.com
resources:
- servicemonitors
- prometheusrules
verbs:
- get
- create
Expand Down
9 changes: 9 additions & 0 deletions manifests/stable/image-references
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ spec:
from:
kind: DockerImage
name: quay.io/openshift/origin-sriov-infiniband-cni:4.17
- name: sriov-network-metrics-exporter
from:
kind: DockerImage
name: quay.io/openshift/origin-sriov-network-metrics-exporter:4.17
- name: kube-rbac-proxy
from:
kind: DockerImage
name: quay.io/openshift/origin-kube-rbac-proxy:4.17

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.17
createdAt: "2024-05-30T16:54:58Z"
createdAt: "2024-07-29T07:35:08Z"
description: An operator for configuring SR-IOV components and initializing SRIOV
network devices in Openshift cluster.
features.operators.openshift.io/cnf: "false"
Expand All @@ -114,6 +114,7 @@ metadata:
features.operators.openshift.io/token-auth-azure: "false"
features.operators.openshift.io/token-auth-gcp: "false"
olm.skipRange: '>=4.3.0-0 <4.17.0'
operatorframework.io/cluster-monitoring: "true"
operatorframework.io/initialization-resource: |-
{
"apiVersion": "sriovnetwork.openshift.io/v1",
Expand Down Expand Up @@ -392,6 +393,20 @@ spec:
value: operator-webhook-service
- name: ADMISSION_CONTROLLERS_CERTIFICATES_INJECTOR_SECRET_NAME
value: network-resources-injector-secret
- name: METRICS_EXPORTER_IMAGE
value: quay.io/openshift/origin-sriov-network-metrics-exporter:4.17
- name: METRICS_EXPORTER_KUBE_RBAC_PROXY_IMAGE
value: quay.io/openshift/origin-kube-rbac-proxy:4.17
- name: METRICS_EXPORTER_SECRET_NAME
value: metrics-exporter-cert
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_ENABLED
value: "true"
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_NAMESPACE
value: openshift-monitoring
- name: METRICS_EXPORTER_PROMETHEUS_OPERATOR_SERVICE_ACCOUNT
value: prometheus-k8s
- name: METRICS_EXPORTER_PORT
value: "9110"
- name: NAMESPACE
valueFrom:
fieldRef:
Expand Down Expand Up @@ -539,6 +554,7 @@ spec:
- monitoring.coreos.com
resources:
- servicemonitors
- prometheusrules
verbs:
- get
- create
Expand Down

0 comments on commit 6227fc6

Please sign in to comment.