Skip to content

How to provide ServiceMonitor of an operator with OLM #4124

Description

@miguelsorianod

Type of question

General operator-related help

Question

Hi,

I'm working on migrating an operator from v0.x to v1.1.0. One of the changes I've noticed is that the ServiceMonitor does not seem to be created by the operator anymore, and it's a standalone object in config/prometheus.

However, when I generate the bundle the object is not there. Thus, when I install the operator using OLM through the bundle the ServiceMonitor is not there.

Take into account that Prometheus might be or might not be installed in the destination cluster. This is, the API type that deals with ServiceMonitors might not be defined in the K8s API (because it's only defined when Prometheus K8s CRDs have been installed)
Additionally, the destination cluster might be a cluster where the old packagemanifests format is the image format used too.

What would be the recommended approach there?

Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

olm-integrationIssue relates to the OLM integrationtriage/supportIndicates an issue that is a support question.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions