You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem you need a feature to resolve.
We have the /metrics endpoint for the operator, and we create a ServiceMonitor to scrape those metrics. However, the ServiceMonitor requires a CA and a serverName. The serverName field depends on the namespace where the operator is installed.
If the user installs the operator in a namespace different from the default one, the serverName field is incorrect. This leads to the certificate being invalid, and as a result, the ServiceMonitor cannot scrape the metrics.
The current solution is to create the ServiceMonitor from the operator at runtime, but this solution is not ideal because it introduces OpenShift-specific logic in upstream operators.
Describe the solution you'd like.
We want the operator-sdk to dynamically handle the serverName configuration for the ServiceMonitor based on the namespace where the operator is installed. This would ensure that the correct serverName is used, regardless of the installation namespace, making the certificate valid and allowing the ServiceMonitor to scrape the metrics properly.
Or any alternative solution that can help with this use case.
The text was updated successfully, but these errors were encountered:
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten
/remove-lifecycle stale
openshift-cibot
added
lifecycle/rotten
Denotes an issue or PR that has aged beyond stale and will be auto-closed.
and removed
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
labels
Feb 16, 2025
Feature Request
Describe the problem you need a feature to resolve.
We have the
/metrics
endpoint for the operator, and we create aServiceMonitor
to scrape those metrics. However, theServiceMonitor
requires a CA and aserverName
. TheserverName
field depends on the namespace where the operator is installed.If the user installs the operator in a namespace different from the default one, the
serverName
field is incorrect. This leads to the certificate being invalid, and as a result, theServiceMonitor
cannot scrape the metrics.For example:
The current solution is to create the
ServiceMonitor
from the operator at runtime, but this solution is not ideal because it introduces OpenShift-specific logic in upstream operators.Describe the solution you'd like.
We want the operator-sdk to dynamically handle the
serverName
configuration for theServiceMonitor
based on the namespace where the operator is installed. This would ensure that the correctserverName
is used, regardless of the installation namespace, making the certificate valid and allowing theServiceMonitor
to scrape the metrics properly.Or any alternative solution that can help with this use case.
The text was updated successfully, but these errors were encountered: