Bug 1799054 - Metering operator should make use of suggested namespace and cluster monitoring annotations
Summary: Metering operator should make use of suggested namespace and cluster monitori...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Metering Operator
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.4.0
Assignee: tflannag
QA Contact: Peter Ruan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-06 14:29 UTC by Samuel Padgett
Modified: 2020-05-13 21:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-13 21:56:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github operator-framework operator-metering pull 1097 0 None closed Bug 1799054: Add support for suggested namespace and cluster monitoring annotations in OLM. 2020-07-27 14:52:34 UTC
Github operator-framework operator-metering pull 1105 0 None closed Bug 1799054: Add quotations around the cluster-monitoring CSV annotation. 2020-07-27 14:52:34 UTC
Red Hat Product Errata RHBA-2020:0581 0 None None None 2020-05-13 21:56:37 UTC

Description Samuel Padgett 2020-02-06 14:29:17 UTC
In 4.4, OpenShift console added support for two ClusterServiceVersion annotations:

* operatorframework.io/suggested-namespace - console will suggest and create the suggested namespace for the operator
* operatorframework.io/cluster-monitoring=true - console will ask the user if they want to enable monitoring the operator and apply the label to the created namespace

Operators that require a specific namespace and need to enable monitoring should add these annotations to give the UI hints. This will avoid extra steps requiring users to create and label the namespace outside of the UI.

More details in this enhancement:

https://github.com/openshift/enhancements/blob/master/enhancements/olm/olm-managed-operator-metrics.md#fulfilling-namespace-and-rbac-requirements

Here is the console PR:

https://github.com/openshift/console/pull/3862

Comment 2 Alexander Greene 2020-02-10 15:00:27 UTC
The suggested namespace annotation and cluster monitoring annotation documentation can be found here [1].

[1] https://docs.google.com/document/d/1Mru7pqkpx2gmxMxK6AYOLVphWW0mzwZG-R8_HBVxLwI/edit

Comment 4 Peter Ruan 2020-03-12 22:02:26 UTC
verified with 
Server Version: 4.4.0-0.nightly-2020-03-11-110509

1. go OperatorHub in the OCP console 
2. select the Custom checkbox (under the Provider Type section)
3. select Metering
4. After selecting the default options you should see in the page 'Operator recommended namespace: ProjectPRopenshift-metering'

Comment 6 errata-xmlrpc 2020-05-13 21:56:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0581


Note You need to log in before you can comment on or make changes to this bug.