@@ -1512,15 +1512,23 @@ type ServiceMonitorSpec struct {
1512
1512
// +optional
1513
1513
TLSConfig * monitoringv1.TLSConfig `json:"tlsConfig,omitempty"`
1514
1514
// File to read bearer token for scraping targets.
1515
- // See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#endpoint
1515
+ // Deprecated: use `authorization` instead.
1516
1516
// +optional
1517
1517
BearerTokenFile string `json:"bearerTokenFile,omitempty"`
1518
1518
// Secret to mount to read bearer token for scraping targets. The secret
1519
1519
// needs to be in the same namespace as the service monitor and accessible by
1520
1520
// the Prometheus Operator.
1521
- // See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#endpoint
1521
+ // Deprecated: use `authorization` instead.
1522
1522
// +optional
1523
1523
BearerTokenSecret * corev1.SecretKeySelector `json:"bearerTokenSecret,omitempty"`
1524
+ // `authorization` configures the Authorization header credentials to use when
1525
+ // scraping the target.
1526
+ // See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#endpoint
1527
+ //
1528
+ // Cannot be set at the same time as `basicAuth`, or `oauth2`.
1529
+ //
1530
+ // +optional
1531
+ Authorization * monitoringv1.SafeAuthorization `json:"authorization,omitempty"`
1524
1532
// HonorLabels chooses the metric labels on collisions with target labels.
1525
1533
// See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#endpoint
1526
1534
// +optional
@@ -2076,6 +2084,7 @@ type ServiceSpec struct {
2076
2084
// +optional
2077
2085
ClusterIPs []string `json:"clusterIPs,omitempty"`
2078
2086
// LoadBalancerIP is the IP address of the load balancer
2087
+ // Deprecated: This field is deprecated in the Kubernetes API.
2079
2088
// +optional
2080
2089
LoadBalancerIP * string `json:"loadBalancerIP,omitempty"`
2081
2090
// The extra labels to add to the service.
0 commit comments