Skip to content

Commit e74200d

Browse files
committed
change Scheme field
1 parent 9faaffa commit e74200d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/v1/coherence_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ type ServiceMonitorSpec struct {
15011501
// HTTP scheme to use for scraping.
15021502
// See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#endpoint
15031503
// +optional
1504-
Scheme monitoringv1.Scheme `json:"scheme,omitempty"`
1504+
Scheme *monitoringv1.Scheme `json:"scheme,omitempty"`
15051505
// Optional HTTP URL parameters
15061506
// See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#endpoint
15071507
// +optional
@@ -1586,7 +1586,7 @@ func (in *ServiceMonitorSpec) CreateEndpoint() monitoringv1.Endpoint {
15861586

15871587
return monitoringv1.Endpoint{
15881588
Path: in.Path,
1589-
Scheme: &in.Scheme,
1589+
Scheme: in.Scheme,
15901590
Params: in.Params,
15911591
Interval: in.Interval,
15921592
ScrapeTimeout: in.ScrapeTimeout,

0 commit comments

Comments
 (0)