@@ -51,8 +51,12 @@ func TestLoad(t *testing.T) {
51
51
},
52
52
FilterStrategy : DefaultFilterStrategy ,
53
53
PrometheusCR : PrometheusCRConfig {
54
- Enabled : true ,
55
- ScrapeInterval : model .Duration (time .Second * 60 ),
54
+ Enabled : true ,
55
+ ScrapeInterval : model .Duration (time .Second * 60 ),
56
+ ServiceMonitorNamespaceSelector : & metav1.LabelSelector {},
57
+ PodMonitorNamespaceSelector : & metav1.LabelSelector {},
58
+ ScrapeConfigNamespaceSelector : & metav1.LabelSelector {},
59
+ ProbeNamespaceSelector : & metav1.LabelSelector {},
56
60
},
57
61
HTTPS : HTTPSServerConfig {
58
62
Enabled : true ,
@@ -142,7 +146,11 @@ func TestLoad(t *testing.T) {
142
146
"release" : "test" ,
143
147
},
144
148
},
145
- ScrapeInterval : DefaultCRScrapeInterval ,
149
+ ServiceMonitorNamespaceSelector : & metav1.LabelSelector {},
150
+ PodMonitorNamespaceSelector : & metav1.LabelSelector {},
151
+ ScrapeConfigNamespaceSelector : & metav1.LabelSelector {},
152
+ ProbeNamespaceSelector : & metav1.LabelSelector {},
153
+ ScrapeInterval : DefaultCRScrapeInterval ,
146
154
},
147
155
PromConfig : & promconfig.Config {
148
156
GlobalConfig : promconfig.GlobalConfig {
@@ -213,7 +221,11 @@ func TestLoad(t *testing.T) {
213
221
"release" : "test" ,
214
222
},
215
223
},
216
- ScrapeInterval : DefaultCRScrapeInterval ,
224
+ ServiceMonitorNamespaceSelector : & metav1.LabelSelector {},
225
+ PodMonitorNamespaceSelector : & metav1.LabelSelector {},
226
+ ScrapeConfigNamespaceSelector : & metav1.LabelSelector {},
227
+ ProbeNamespaceSelector : & metav1.LabelSelector {},
228
+ ScrapeInterval : DefaultCRScrapeInterval ,
217
229
},
218
230
PromConfig : & promconfig.Config {
219
231
GlobalConfig : promconfig.GlobalConfig {
@@ -308,7 +320,11 @@ func TestLoad(t *testing.T) {
308
320
},
309
321
},
310
322
},
311
- ScrapeInterval : DefaultCRScrapeInterval ,
323
+ ServiceMonitorNamespaceSelector : & metav1.LabelSelector {},
324
+ PodMonitorNamespaceSelector : & metav1.LabelSelector {},
325
+ ScrapeConfigNamespaceSelector : & metav1.LabelSelector {},
326
+ ProbeNamespaceSelector : & metav1.LabelSelector {},
327
+ ScrapeInterval : DefaultCRScrapeInterval ,
312
328
},
313
329
PromConfig : & promconfig.Config {
314
330
GlobalConfig : promconfig.GlobalConfig {
@@ -403,7 +419,11 @@ func TestLoad(t *testing.T) {
403
419
},
404
420
},
405
421
},
406
- ScrapeInterval : DefaultCRScrapeInterval ,
422
+ ServiceMonitorNamespaceSelector : & metav1.LabelSelector {},
423
+ PodMonitorNamespaceSelector : & metav1.LabelSelector {},
424
+ ScrapeConfigNamespaceSelector : & metav1.LabelSelector {},
425
+ ProbeNamespaceSelector : & metav1.LabelSelector {},
426
+ ScrapeInterval : DefaultCRScrapeInterval ,
407
427
},
408
428
PromConfig : & promconfig.Config {
409
429
GlobalConfig : promconfig.GlobalConfig {
0 commit comments