Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-6540

Replace BearerTokenSecret with Authorization field in ServiceMonitor

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • NEW
    • NEW
    • Bug Fix
    • Log Collection - Sprint 265
    • Moderate

      The BearerToken field in the CRD ServiceMonitor is deprecated. Need to be replaced with Authorization[].Credentials field.

      From OCP 4.16, the bearerTokenSecret field is deprecated and will generate an alert if used.

      level=warn ts=2025-01-03T11:27:04.000721412Z caller=resource_selector.go:126 component=prometheus-controller msg="skipping servicemonitor" error="it accesses file system via tls config which Prometheus specification prohibits" servicemonitor=openshift-logging/collector namespace=openshift-user-workload-monitoring prometheus=user-workload
      

      ServiceMonitor Specification: https://docs.openshift.com/container-platform/4.16/rest_api/monitoring_apis/servicemonitor-monitoring-coreos-com-v1.html#spec-endpoints-authorization

      OpenShift 4.17.9
      OpenShiftLogging 6.1.0
      ClusterLogForwarder collector

              rh-ee-calee Calvin Lee
              rbaumgar Robert Baumgartner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: