Skip to content

Generated ServiceMonitor scheme is not valid #786

Description

@faandg

Bug Report

What did you do?

Upgrade to 1.5.2 -> 1.6.2.
Apply RC with for example:

  monitoring:
    endpoints:
      - interval: 15s
        path: /some-path/actuator/prometheus
        port: management

After apply we see the following warning:

RC
saldochecker-uat
ServiceMonitor.monitoring.coreos.com "saldochecker-uat" is invalid: spec.endpoints[0].scheme: Unsupported value: "HTTPS": supported values: "http", "https"

The RC does not reconcile as the scheme of the ServiceMonitor only allows lower case value http/https.

What did you expect to see?

RC applied and reconciled with valid generated ServiceMonitor.

What did you see instead?

RC applied but not reconciled due to the scheme mismatch in ServiceMonitor.

Environment

OpenShift 4.20.24

Possible solution

Set correct scheme value (https instead of HTTPS) for the generated ServiceMonitor -> RC should then reconcile.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions