Open raffaelespazzoli opened 2 years ago
Hi @raffaelespazzoli, thank you for opening this issue. This issue has gone undetected because most operators leveraging the ServiceMonitor object in the bundle are installed in a specific predefined namespace and do not need to update the serverName
field dynamically at install-time.
This definitely feels like a valid bug and is worth continuing to triage.
Bug Report
What did you do? When deploying a ServiceMonitor object the serverName field should be updated to reflect the namespace in which the operator in begin deployed.
What did you expect to see? so foir exmaple if this is the ServiceMonitor in the bundle:
and the operator is being deployed to the
aaabbb
namespace then OLM should change this to beapiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: labels: operator: volume-expander-operator name: volume-expander-operator-controller-manager-metrics-monitor spec: endpoints:
What did you see instead? Under which circumstances? A clear and concise description of what you expected to happen (or insert a code snippet).
Environment
quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:4b14ffcea52f9eb5952546634cb26bfb1d523a4dd81382021c71673fed91efa2