@@ -88,9 +88,6 @@ type PoolerSpec struct {
8888 DeploymentStrategy * appsv1.DeploymentStrategy `json:"deploymentStrategy,omitempty"`
8989
9090 // The configuration of the monitoring infrastructure of this pooler.
91- //
92- // Deprecated: This feature will be removed in an upcoming release. If
93- // you need this functionality, you can create a PodMonitor manually.
9491 // +optional
9592 Monitoring * PoolerMonitoringConfiguration `json:"monitoring,omitempty"`
9693
@@ -117,17 +114,41 @@ type PoolerSpec struct {
117114// part for now.
118115type PoolerMonitoringConfiguration struct {
119116 // Enable or disable the `PodMonitor`
117+ //
118+ // Deprecated: This feature will be removed in an upcoming release. If
119+ // you need this functionality, you can create a PodMonitor manually.
120120 // +kubebuilder:default:=false
121121 // +optional
122122 EnablePodMonitor bool `json:"enablePodMonitor,omitempty"`
123123
124124 // The list of metric relabelings for the `PodMonitor`. Applied to samples before ingestion.
125+ //
126+ // Deprecated: This feature will be removed in an upcoming release. If
127+ // you need this functionality, you can create a PodMonitor manually.
125128 // +optional
126129 PodMonitorMetricRelabelConfigs []monitoringv1.RelabelConfig `json:"podMonitorMetricRelabelings,omitempty"`
127130
128131 // The list of relabelings for the `PodMonitor`. Applied to samples before scraping.
132+ //
133+ // Deprecated: This feature will be removed in an upcoming release. If
134+ // you need this functionality, you can create a PodMonitor manually.
129135 // +optional
130136 PodMonitorRelabelConfigs []monitoringv1.RelabelConfig `json:"podMonitorRelabelings,omitempty"`
137+
138+ // Configure TLS communication for the metrics endpoint.
139+ // Changing tls.enabled option will force a rollout of all instances.
140+ // +optional
141+ TLSConfig * PoolerMonitoringTLSConfiguration `json:"tls,omitempty"`
142+ }
143+
144+ // PoolerMonitoringTLSConfiguration is the type containing the TLS configuration
145+ // for the pooler monitoring
146+ type PoolerMonitoringTLSConfiguration struct {
147+ // Enable TLS for the monitoring endpoint.
148+ // Changing this option will force a rollout of all instances.
149+ // +kubebuilder:default:=false
150+ // +optional
151+ Enabled bool `json:"enabled,omitempty"`
131152}
132153
133154// PodTemplateSpec is a structure allowing the user to set
0 commit comments