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 3, 2024
1 parent 6e9cb70 commit 71887fa
Show file tree
Hide file tree
Showing 6 changed files with 56 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.16
createdAt: "2024-07-02T23:49:19Z"
createdAt: "2024-07-03T10:36:15Z"
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.16.0'
operatorframework.io/cluster-monitoring: "true"
operatorframework.io/initialization-resource: |-
{
"apiVersion": "sriovnetwork.openshift.io/v1",
Expand Down Expand Up @@ -392,6 +393,14 @@ 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_PORT
value: "9110"
- name: NAMESPACE
valueFrom:
fieldRef:
Expand Down Expand Up @@ -564,6 +573,12 @@ spec:
- leases
verbs:
- '*'
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- get
serviceAccountName: sriov-network-operator
strategy: deployment
installModes:
Expand Down
8 changes: 8 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ 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_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.16.0'
operatorframework.io/cluster-monitoring: "true"
operatorframework.io/initialization-resource: |-
{
"apiVersion": "sriovnetwork.openshift.io/v1",
Expand Down
6 changes: 6 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ rules:
- 'leases'
verbs:
- '*'
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- get
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.16
- 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.16
createdAt: "2024-07-02T23:49:19Z"
createdAt: "2024-07-03T10:36:15Z"
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.16.0'
operatorframework.io/cluster-monitoring: "true"
operatorframework.io/initialization-resource: |-
{
"apiVersion": "sriovnetwork.openshift.io/v1",
Expand Down Expand Up @@ -392,6 +393,14 @@ 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_PORT
value: "9110"
- name: NAMESPACE
valueFrom:
fieldRef:
Expand Down Expand Up @@ -564,6 +573,12 @@ spec:
- leases
verbs:
- '*'
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- get
serviceAccountName: sriov-network-operator
strategy: deployment
installModes:
Expand Down

0 comments on commit 71887fa

Please sign in to comment.