@@ -1318,7 +1318,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapUsingArs(t *testing.T) {
1318
1318
t .Errorf ("Counter was not increased" )
1319
1319
}
1320
1320
1321
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1321
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1322
1322
t .Errorf ("Counter by namespace was not increased" )
1323
1323
}
1324
1324
}
@@ -1347,7 +1347,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapWithoutReloadAnnotationAndWitho
1347
1347
t .Errorf ("Counter was increased unexpectedly" )
1348
1348
}
1349
1349
1350
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) > 0 {
1350
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) > 0 {
1351
1351
t .Errorf ("Counter by namespace was increased unexpectedly" )
1352
1352
}
1353
1353
}
@@ -1378,7 +1378,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapWithoutReloadAnnotationButWithA
1378
1378
t .Errorf ("Counter was not increased" )
1379
1379
}
1380
1380
1381
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1381
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1382
1382
t .Errorf ("Counter by namespace was not increased" )
1383
1383
}
1384
1384
}
@@ -1406,7 +1406,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapInProjectedVolumeUsingArs(t *te
1406
1406
t .Errorf ("Counter was not increased" )
1407
1407
}
1408
1408
1409
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1409
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1410
1410
t .Errorf ("Counter by namespace was not increased" )
1411
1411
}
1412
1412
}
@@ -1435,7 +1435,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapViaSearchAnnotationUsingArs(t *
1435
1435
t .Errorf ("Counter was not increased" )
1436
1436
}
1437
1437
1438
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1438
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1439
1439
t .Errorf ("Counter by namespace was not increased" )
1440
1440
}
1441
1441
}
@@ -1465,7 +1465,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapViaSearchAnnotationNoTriggersUs
1465
1465
t .Errorf ("Counter was increased unexpectedly" )
1466
1466
}
1467
1467
1468
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) > 0 {
1468
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) > 0 {
1469
1469
t .Errorf ("Counter by namespace was increased unexpectedly" )
1470
1470
}
1471
1471
}
@@ -1508,7 +1508,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapViaSearchAnnotationNotMappedUsi
1508
1508
t .Errorf ("Counter was increased unexpectedly" )
1509
1509
}
1510
1510
1511
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) > 0 {
1511
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) > 0 {
1512
1512
t .Errorf ("Counter by namespace was increased unexpectedly" )
1513
1513
}
1514
1514
}
@@ -1537,7 +1537,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapInInitContainerUsingArs(t *test
1537
1537
t .Errorf ("Counter was not increased" )
1538
1538
}
1539
1539
1540
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1540
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1541
1541
t .Errorf ("Counter by namespace was not increased" )
1542
1542
}
1543
1543
}
@@ -1566,7 +1566,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapInProjectVolumeInInitContainerU
1566
1566
t .Errorf ("Counter was not increased" )
1567
1567
}
1568
1568
1569
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1569
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1570
1570
t .Errorf ("Counter by namespace was not increased" )
1571
1571
}
1572
1572
}
@@ -1595,7 +1595,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapAsEnvVarUsingArs(t *testing.T)
1595
1595
t .Errorf ("Counter was not increased" )
1596
1596
}
1597
1597
1598
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1598
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1599
1599
t .Errorf ("Counter by namespace was not increased" )
1600
1600
}
1601
1601
}
@@ -1624,7 +1624,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapAsEnvVarInInitContainerUsingArs
1624
1624
t .Errorf ("Counter was not increased" )
1625
1625
}
1626
1626
1627
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1627
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1628
1628
t .Errorf ("Counter by namespace was not increased" )
1629
1629
}
1630
1630
}
@@ -1653,7 +1653,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapAsEnvVarFromUsingArs(t *testing
1653
1653
t .Errorf ("Counter was not increased" )
1654
1654
}
1655
1655
1656
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1656
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1657
1657
t .Errorf ("Counter by namespace was not increased" )
1658
1658
}
1659
1659
}
@@ -1682,7 +1682,7 @@ func TestRollingUpgradeForDeploymentWithSecretUsingArs(t *testing.T) {
1682
1682
t .Errorf ("Counter was not increased" )
1683
1683
}
1684
1684
1685
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1685
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1686
1686
t .Errorf ("Counter by namespace was not increased" )
1687
1687
}
1688
1688
}
@@ -1711,7 +1711,7 @@ func TestRollingUpgradeForDeploymentWithSecretInProjectedVolumeUsingArs(t *testi
1711
1711
t .Errorf ("Counter was not increased" )
1712
1712
}
1713
1713
1714
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1714
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1715
1715
t .Errorf ("Counter by namespace was not increased" )
1716
1716
}
1717
1717
}
@@ -1740,7 +1740,7 @@ func TestRollingUpgradeForDeploymentWithSecretinInitContainerUsingArs(t *testing
1740
1740
t .Errorf ("Counter was not increased" )
1741
1741
}
1742
1742
1743
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1743
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1744
1744
t .Errorf ("Counter by namespace was not increased" )
1745
1745
}
1746
1746
}
@@ -1769,7 +1769,7 @@ func TestRollingUpgradeForDeploymentWithSecretInProjectedVolumeinInitContainerUs
1769
1769
t .Errorf ("Counter was not increased" )
1770
1770
}
1771
1771
1772
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1772
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1773
1773
t .Errorf ("Counter by namespace was not increased" )
1774
1774
}
1775
1775
}
@@ -1798,7 +1798,7 @@ func TestRollingUpgradeForDeploymentWithSecretAsEnvVarUsingArs(t *testing.T) {
1798
1798
t .Errorf ("Counter was not increased" )
1799
1799
}
1800
1800
1801
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1801
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1802
1802
t .Errorf ("Counter by namespace was not increased" )
1803
1803
}
1804
1804
}
@@ -1827,7 +1827,7 @@ func TestRollingUpgradeForDeploymentWithSecretAsEnvVarFromUsingArs(t *testing.T)
1827
1827
t .Errorf ("Counter was not increased" )
1828
1828
}
1829
1829
1830
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1830
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1831
1831
t .Errorf ("Counter by namespace was not increased" )
1832
1832
}
1833
1833
}
@@ -1856,7 +1856,7 @@ func TestRollingUpgradeForDeploymentWithSecretAsEnvVarInInitContainerUsingArs(t
1856
1856
t .Errorf ("Counter was not increased" )
1857
1857
}
1858
1858
1859
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1859
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1860
1860
t .Errorf ("Counter by namespace was not increased" )
1861
1861
}
1862
1862
}
@@ -1885,7 +1885,7 @@ func TestRollingUpgradeForDeploymentWithSecretAutoAnnotationUsingArs(t *testing.
1885
1885
t .Errorf ("Counter was not increased" )
1886
1886
}
1887
1887
1888
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1888
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1889
1889
t .Errorf ("Counter by namespace was not increased" )
1890
1890
}
1891
1891
}
@@ -1914,7 +1914,7 @@ func TestRollingUpgradeForDeploymentWithConfigMapAutoAnnotationUsingArs(t *testi
1914
1914
t .Errorf ("Counter was not increased" )
1915
1915
}
1916
1916
1917
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1917
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1918
1918
t .Errorf ("Counter by namespace was not increased" )
1919
1919
}
1920
1920
}
@@ -1943,7 +1943,7 @@ func TestRollingUpgradeForDaemonSetWithConfigmapUsingArs(t *testing.T) {
1943
1943
t .Errorf ("Counter was not increased" )
1944
1944
}
1945
1945
1946
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1946
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1947
1947
t .Errorf ("Counter by namespace was not increased" )
1948
1948
}
1949
1949
}
@@ -1972,7 +1972,7 @@ func TestRollingUpgradeForDaemonSetWithConfigmapInProjectedVolumeUsingArs(t *tes
1972
1972
t .Errorf ("Counter was not increased" )
1973
1973
}
1974
1974
1975
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1975
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
1976
1976
t .Errorf ("Counter by namespace was not increased" )
1977
1977
}
1978
1978
}
@@ -2001,7 +2001,7 @@ func TestRollingUpgradeForDaemonSetWithConfigmapAsEnvVarUsingArs(t *testing.T) {
2001
2001
t .Errorf ("Counter was not increased" )
2002
2002
}
2003
2003
2004
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2004
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2005
2005
t .Errorf ("Counter by namespace was not increased" )
2006
2006
}
2007
2007
}
@@ -2030,7 +2030,7 @@ func TestRollingUpgradeForDaemonSetWithSecretUsingArs(t *testing.T) {
2030
2030
t .Errorf ("Counter was not increased" )
2031
2031
}
2032
2032
2033
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2033
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2034
2034
t .Errorf ("Counter by namespace was not increased" )
2035
2035
}
2036
2036
}
@@ -2059,7 +2059,7 @@ func TestRollingUpgradeForDaemonSetWithSecretInProjectedVolumeUsingArs(t *testin
2059
2059
t .Errorf ("Counter was not increased" )
2060
2060
}
2061
2061
2062
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2062
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2063
2063
t .Errorf ("Counter by namespace was not increased" )
2064
2064
}
2065
2065
}
@@ -2088,7 +2088,7 @@ func TestRollingUpgradeForStatefulSetWithConfigmapUsingArs(t *testing.T) {
2088
2088
t .Errorf ("Counter was not increased" )
2089
2089
}
2090
2090
2091
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2091
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2092
2092
t .Errorf ("Counter by namespace was not increased" )
2093
2093
}
2094
2094
}
@@ -2117,7 +2117,7 @@ func TestRollingUpgradeForStatefulSetWithConfigmapInProjectedVolumeUsingArs(t *t
2117
2117
t .Errorf ("Counter was not increased" )
2118
2118
}
2119
2119
2120
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2120
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2121
2121
t .Errorf ("Counter by namespace was not increased" )
2122
2122
}
2123
2123
}
@@ -2146,7 +2146,7 @@ func TestRollingUpgradeForStatefulSetWithSecretUsingArs(t *testing.T) {
2146
2146
t .Errorf ("Counter was not increased" )
2147
2147
}
2148
2148
2149
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2149
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2150
2150
t .Errorf ("Counter by namespace was not increased" )
2151
2151
}
2152
2152
}
@@ -2175,7 +2175,7 @@ func TestRollingUpgradeForStatefulSetWithSecretInProjectedVolumeUsingArs(t *test
2175
2175
t .Errorf ("Counter was not increased" )
2176
2176
}
2177
2177
2178
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2178
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2179
2179
t .Errorf ("Counter by namespace was not increased" )
2180
2180
}
2181
2181
}
@@ -2231,7 +2231,7 @@ func TestRollingUpgradeForDeploymentWithPodAnnotationsUsingArs(t *testing.T) {
2231
2231
t .Errorf ("Counter was not increased" )
2232
2232
}
2233
2233
2234
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2234
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : arsNamespace })) != 1 {
2235
2235
t .Errorf ("Counter by namespace was not increased" )
2236
2236
}
2237
2237
}
@@ -2253,7 +2253,7 @@ func TestFailedRollingUpgradeUsingArs(t *testing.T) {
2253
2253
t .Errorf ("Counter was not increased" )
2254
2254
}
2255
2255
2256
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "false" , "namespace" : arsNamespace })) != 1 {
2256
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "false" , "namespace" : arsNamespace })) != 1 {
2257
2257
t .Errorf ("Counter by namespace was not increased" )
2258
2258
}
2259
2259
}
@@ -2282,7 +2282,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapUsingErs(t *testing.T) {
2282
2282
t .Errorf ("Counter was not increased" )
2283
2283
}
2284
2284
2285
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2285
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2286
2286
t .Errorf ("Counter by namespace was not increased" )
2287
2287
}
2288
2288
}
@@ -2310,7 +2310,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapInProjectedVolumeUsingErs(t *te
2310
2310
t .Errorf ("Counter was not increased" )
2311
2311
}
2312
2312
2313
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2313
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2314
2314
t .Errorf ("Counter by namespace was not increased" )
2315
2315
}
2316
2316
}
@@ -2339,7 +2339,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapViaSearchAnnotationUsingErs(t *
2339
2339
t .Errorf ("Counter was not increased" )
2340
2340
}
2341
2341
2342
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2342
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2343
2343
t .Errorf ("Counter by namespace was not increased" )
2344
2344
}
2345
2345
}
@@ -2369,7 +2369,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapViaSearchAnnotationNoTriggersUs
2369
2369
t .Errorf ("Counter was increased unexpectedly" )
2370
2370
}
2371
2371
2372
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) > 0 {
2372
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) > 0 {
2373
2373
t .Errorf ("Counter by namespace was increased unexpectedly" )
2374
2374
}
2375
2375
}
@@ -2412,7 +2412,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapViaSearchAnnotationNotMappedUsi
2412
2412
t .Errorf ("Counter was increased unexpectedly" )
2413
2413
}
2414
2414
2415
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) > 0 {
2415
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) > 0 {
2416
2416
t .Errorf ("Counter by namespace was increased unexpectedly" )
2417
2417
}
2418
2418
}
@@ -2441,7 +2441,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapInInitContainerUsingErs(t *test
2441
2441
t .Errorf ("Counter was not increased" )
2442
2442
}
2443
2443
2444
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2444
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2445
2445
t .Errorf ("Counter by namespace was not increased" )
2446
2446
}
2447
2447
}
@@ -2470,7 +2470,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapInProjectVolumeInInitContainerU
2470
2470
t .Errorf ("Counter was not increased" )
2471
2471
}
2472
2472
2473
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2473
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2474
2474
t .Errorf ("Counter by namespace was not increased" )
2475
2475
}
2476
2476
}
@@ -2499,7 +2499,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapAsEnvVarUsingErs(t *testing.T)
2499
2499
t .Errorf ("Counter was not increased" )
2500
2500
}
2501
2501
2502
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2502
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2503
2503
t .Errorf ("Counter by namespace was not increased" )
2504
2504
}
2505
2505
}
@@ -2528,7 +2528,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapAsEnvVarInInitContainerUsingErs
2528
2528
t .Errorf ("Counter was not increased" )
2529
2529
}
2530
2530
2531
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2531
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2532
2532
t .Errorf ("Counter by namespace was not increased" )
2533
2533
}
2534
2534
}
@@ -2557,7 +2557,7 @@ func TestRollingUpgradeForDeploymentWithConfigmapAsEnvVarFromUsingErs(t *testing
2557
2557
t .Errorf ("Counter was not increased" )
2558
2558
}
2559
2559
2560
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2560
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2561
2561
t .Errorf ("Counter by namespace was not increased" )
2562
2562
}
2563
2563
}
@@ -2586,7 +2586,7 @@ func TestRollingUpgradeForDeploymentWithSecretUsingErs(t *testing.T) {
2586
2586
t .Errorf ("Counter was not increased" )
2587
2587
}
2588
2588
2589
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2589
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2590
2590
t .Errorf ("Counter by namespace was not increased" )
2591
2591
}
2592
2592
}
@@ -2615,7 +2615,7 @@ func TestRollingUpgradeForDeploymentWithSecretInProjectedVolumeUsingErs(t *testi
2615
2615
t .Errorf ("Counter was not increased" )
2616
2616
}
2617
2617
2618
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2618
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2619
2619
t .Errorf ("Counter by namespace was not increased" )
2620
2620
}
2621
2621
}
@@ -2644,7 +2644,7 @@ func TestRollingUpgradeForDeploymentWithSecretinInitContainerUsingErs(t *testing
2644
2644
t .Errorf ("Counter was not increased" )
2645
2645
}
2646
2646
2647
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2647
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2648
2648
t .Errorf ("Counter by namespace was not increased" )
2649
2649
}
2650
2650
}
@@ -2673,7 +2673,7 @@ func TestRollingUpgradeForDeploymentWithSecretInProjectedVolumeinInitContainerUs
2673
2673
t .Errorf ("Counter was not increased" )
2674
2674
}
2675
2675
2676
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2676
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2677
2677
t .Errorf ("Counter by namespace was not increased" )
2678
2678
}
2679
2679
}
@@ -2702,7 +2702,7 @@ func TestRollingUpgradeForDeploymentWithSecretAsEnvVarUsingErs(t *testing.T) {
2702
2702
t .Errorf ("Counter was not increased" )
2703
2703
}
2704
2704
2705
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2705
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2706
2706
t .Errorf ("Counter by namespace was not increased" )
2707
2707
}
2708
2708
}
@@ -2731,7 +2731,7 @@ func TestRollingUpgradeForDeploymentWithSecretAsEnvVarFromUsingErs(t *testing.T)
2731
2731
t .Errorf ("Counter was not increased" )
2732
2732
}
2733
2733
2734
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2734
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2735
2735
t .Errorf ("Counter by namespace was not increased" )
2736
2736
}
2737
2737
}
@@ -2760,7 +2760,7 @@ func TestRollingUpgradeForDeploymentWithSecretAsEnvVarInInitContainerUsingErs(t
2760
2760
t .Errorf ("Counter was not increased" )
2761
2761
}
2762
2762
2763
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2763
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2764
2764
t .Errorf ("Counter by namespace was not increased" )
2765
2765
}
2766
2766
}
@@ -2789,7 +2789,7 @@ func TestRollingUpgradeForDeploymentWithSecretAutoAnnotationUsingErs(t *testing.
2789
2789
t .Errorf ("Counter was not increased" )
2790
2790
}
2791
2791
2792
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2792
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2793
2793
t .Errorf ("Counter by namespace was not increased" )
2794
2794
}
2795
2795
}
@@ -2818,7 +2818,7 @@ func TestRollingUpgradeForDeploymentWithConfigMapAutoAnnotationUsingErs(t *testi
2818
2818
t .Errorf ("Counter was not increased" )
2819
2819
}
2820
2820
2821
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2821
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2822
2822
t .Errorf ("Counter by namespace was not increased" )
2823
2823
}
2824
2824
}
@@ -2847,7 +2847,7 @@ func TestRollingUpgradeForDaemonSetWithConfigmapUsingErs(t *testing.T) {
2847
2847
t .Errorf ("Counter was not increased" )
2848
2848
}
2849
2849
2850
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2850
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2851
2851
t .Errorf ("Counter by namespace was not increased" )
2852
2852
}
2853
2853
}
@@ -2876,7 +2876,7 @@ func TestRollingUpgradeForDaemonSetWithConfigmapInProjectedVolumeUsingErs(t *tes
2876
2876
t .Errorf ("Counter was not increased" )
2877
2877
}
2878
2878
2879
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2879
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2880
2880
t .Errorf ("Counter by namespace was not increased" )
2881
2881
}
2882
2882
}
@@ -2905,7 +2905,7 @@ func TestRollingUpgradeForDaemonSetWithConfigmapAsEnvVarUsingErs(t *testing.T) {
2905
2905
t .Errorf ("Counter was not increased" )
2906
2906
}
2907
2907
2908
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2908
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2909
2909
t .Errorf ("Counter by namespace was not increased" )
2910
2910
}
2911
2911
}
@@ -2934,7 +2934,7 @@ func TestRollingUpgradeForDaemonSetWithSecretUsingErs(t *testing.T) {
2934
2934
t .Errorf ("Counter was not increased" )
2935
2935
}
2936
2936
2937
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2937
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2938
2938
t .Errorf ("Counter by namespace was not increased" )
2939
2939
}
2940
2940
}
@@ -2963,7 +2963,7 @@ func TestRollingUpgradeForDaemonSetWithSecretInProjectedVolumeUsingErs(t *testin
2963
2963
t .Errorf ("Counter was not increased" )
2964
2964
}
2965
2965
2966
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2966
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2967
2967
t .Errorf ("Counter by namespace was not increased" )
2968
2968
}
2969
2969
}
@@ -2992,7 +2992,7 @@ func TestRollingUpgradeForStatefulSetWithConfigmapUsingErs(t *testing.T) {
2992
2992
t .Errorf ("Counter was not increased" )
2993
2993
}
2994
2994
2995
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2995
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
2996
2996
t .Errorf ("Counter by namespace was not increased" )
2997
2997
}
2998
2998
}
@@ -3021,7 +3021,7 @@ func TestRollingUpgradeForStatefulSetWithConfigmapInProjectedVolumeUsingErs(t *t
3021
3021
t .Errorf ("Counter was not increased" )
3022
3022
}
3023
3023
3024
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
3024
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
3025
3025
t .Errorf ("Counter by namespace was not increased" )
3026
3026
}
3027
3027
}
@@ -3050,7 +3050,7 @@ func TestRollingUpgradeForStatefulSetWithSecretUsingErs(t *testing.T) {
3050
3050
t .Errorf ("Counter was not increased" )
3051
3051
}
3052
3052
3053
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
3053
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
3054
3054
t .Errorf ("Counter by namespace was not increased" )
3055
3055
}
3056
3056
}
@@ -3079,7 +3079,7 @@ func TestRollingUpgradeForStatefulSetWithSecretInProjectedVolumeUsingErs(t *test
3079
3079
t .Errorf ("Counter was not increased" )
3080
3080
}
3081
3081
3082
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
3082
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
3083
3083
t .Errorf ("Counter by namespace was not increased" )
3084
3084
}
3085
3085
}
@@ -3136,7 +3136,7 @@ func TestRollingUpgradeForDeploymentWithPodAnnotationsUsingErs(t *testing.T) {
3136
3136
t .Errorf ("Counter was not increased" )
3137
3137
}
3138
3138
3139
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
3139
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "true" , "namespace" : ersNamespace })) != 1 {
3140
3140
t .Errorf ("Counter by namespace was not increased" )
3141
3141
}
3142
3142
}
@@ -3158,7 +3158,7 @@ func TestFailedRollingUpgradeUsingErs(t *testing.T) {
3158
3158
t .Errorf ("Counter was not increased" )
3159
3159
}
3160
3160
3161
- if promtestutil .ToFloat64 (collectors .Reloaded .With (prometheus.Labels {"success" : "false" , "namespace" : ersNamespace })) != 1 {
3161
+ if promtestutil .ToFloat64 (collectors .ReloadedByNamespace .With (prometheus.Labels {"success" : "false" , "namespace" : ersNamespace })) != 1 {
3162
3162
t .Errorf ("Counter by namespace was not increased" )
3163
3163
}
3164
3164
}
0 commit comments