@@ -1300,18 +1300,20 @@ var _ = Describe("cluster_controller", func() {
1300
1300
Expect (err ).NotTo (HaveOccurred ())
1301
1301
if item .Labels [fdbv1beta2 .FDBProcessGroupIDLabel ] == "storage-1" {
1302
1302
Expect (item .ObjectMeta .Annotations ).To (Equal (map [string ]string {
1303
- "foundationdb.org/last-applied-config-map" : configMapHash ,
1304
- "foundationdb.org/last-applied-spec" : hash ,
1305
- "foundationdb.org/public-ip-source" : "pod" ,
1306
- "foundationdb.org/existing-annotation" : "test-value" ,
1307
- "fdb-annotation" : "value1" ,
1303
+ fdbv1beta2 .LastConfigMapKey : configMapHash ,
1304
+ fdbv1beta2 .LastSpecKey : hash ,
1305
+ fdbv1beta2 .PublicIPSourceAnnotation : "pod" ,
1306
+ "foundationdb.org/existing-annotation" : "test-value" ,
1307
+ "fdb-annotation" : "value1" ,
1308
+ fdbv1beta2 .NodeAnnotation : item .Spec .NodeName ,
1308
1309
}))
1309
1310
} else {
1310
1311
Expect (item .ObjectMeta .Annotations ).To (Equal (map [string ]string {
1311
- "foundationdb.org/last-applied-config-map" : configMapHash ,
1312
- "foundationdb.org/last-applied-spec" : hash ,
1313
- "foundationdb.org/public-ip-source" : "pod" ,
1314
- "fdb-annotation" : "value1" ,
1312
+ fdbv1beta2 .LastConfigMapKey : configMapHash ,
1313
+ fdbv1beta2 .LastSpecKey : hash ,
1314
+ fdbv1beta2 .PublicIPSourceAnnotation : "pod" ,
1315
+ "fdb-annotation" : "value1" ,
1316
+ fdbv1beta2 .NodeAnnotation : item .Spec .NodeName ,
1315
1317
}))
1316
1318
}
1317
1319
}
@@ -1323,7 +1325,7 @@ var _ = Describe("cluster_controller", func() {
1323
1325
Expect (err ).NotTo (HaveOccurred ())
1324
1326
for _ , item := range pvcs .Items {
1325
1327
Expect (item .ObjectMeta .Annotations ).To (Equal (map [string ]string {
1326
- "foundationdb.org/last-applied-spec" : "f0c8a45ea6c3dd26c2dc2b5f3c699f38d613dab273d0f8a6eae6abd9a9569063" ,
1328
+ fdbv1beta2 . LastSpecKey : "f0c8a45ea6c3dd26c2dc2b5f3c699f38d613dab273d0f8a6eae6abd9a9569063" ,
1327
1329
}))
1328
1330
}
1329
1331
@@ -1408,12 +1410,12 @@ var _ = Describe("cluster_controller", func() {
1408
1410
Expect (item .ObjectMeta .Annotations ).To (Equal (map [string ]string {
1409
1411
"fdb-annotation" : "value1" ,
1410
1412
"foundationdb.org/existing-annotation" : "test-value" ,
1411
- "foundationdb.org/last-applied-spec" : "f0c8a45ea6c3dd26c2dc2b5f3c699f38d613dab273d0f8a6eae6abd9a9569063" ,
1413
+ fdbv1beta2 . LastSpecKey : "f0c8a45ea6c3dd26c2dc2b5f3c699f38d613dab273d0f8a6eae6abd9a9569063" ,
1412
1414
}))
1413
1415
} else {
1414
1416
Expect (item .ObjectMeta .Annotations ).To (Equal (map [string ]string {
1415
- "fdb-annotation" : "value1" ,
1416
- "foundationdb.org/last-applied-spec" : "f0c8a45ea6c3dd26c2dc2b5f3c699f38d613dab273d0f8a6eae6abd9a9569063" ,
1417
+ "fdb-annotation" : "value1" ,
1418
+ fdbv1beta2 . LastSpecKey : "f0c8a45ea6c3dd26c2dc2b5f3c699f38d613dab273d0f8a6eae6abd9a9569063" ,
1417
1419
}))
1418
1420
1419
1421
}
@@ -1438,9 +1440,10 @@ var _ = Describe("cluster_controller", func() {
1438
1440
configMapHash , err := getConfigMapHash (cluster , internal .GetProcessClassFromMeta (cluster , item .ObjectMeta ), & item )
1439
1441
Expect (err ).NotTo (HaveOccurred ())
1440
1442
Expect (item .ObjectMeta .Annotations ).To (Equal (map [string ]string {
1441
- "foundationdb.org/last-applied-config-map" : configMapHash ,
1442
- "foundationdb.org/last-applied-spec" : hash ,
1443
- "foundationdb.org/public-ip-source" : "pod" ,
1443
+ fdbv1beta2 .LastConfigMapKey : configMapHash ,
1444
+ fdbv1beta2 .LastSpecKey : hash ,
1445
+ fdbv1beta2 .PublicIPSourceAnnotation : "pod" ,
1446
+ fdbv1beta2 .NodeAnnotation : item .Spec .NodeName ,
1444
1447
}))
1445
1448
}
1446
1449
@@ -1546,9 +1549,10 @@ var _ = Describe("cluster_controller", func() {
1546
1549
configMapHash , err := getConfigMapHash (cluster , internal .GetProcessClassFromMeta (cluster , item .ObjectMeta ), & item )
1547
1550
Expect (err ).NotTo (HaveOccurred ())
1548
1551
Expect (item .ObjectMeta .Annotations ).To (Equal (map [string ]string {
1549
- "foundationdb.org/last-applied-config-map" : configMapHash ,
1550
- "foundationdb.org/last-applied-spec" : hash ,
1551
- "foundationdb.org/public-ip-source" : "pod" ,
1552
+ fdbv1beta2 .LastConfigMapKey : configMapHash ,
1553
+ fdbv1beta2 .LastSpecKey : hash ,
1554
+ fdbv1beta2 .PublicIPSourceAnnotation : "pod" ,
1555
+ fdbv1beta2 .NodeAnnotation : item .Spec .NodeName ,
1552
1556
}))
1553
1557
}
1554
1558
@@ -1557,7 +1561,7 @@ var _ = Describe("cluster_controller", func() {
1557
1561
Expect (err ).NotTo (HaveOccurred ())
1558
1562
for _ , item := range pvcs .Items {
1559
1563
Expect (item .ObjectMeta .Annotations ).To (Equal (map [string ]string {
1560
- "foundationdb.org/last-applied-spec" : "f0c8a45ea6c3dd26c2dc2b5f3c699f38d613dab273d0f8a6eae6abd9a9569063" ,
1564
+ fdbv1beta2 . LastSpecKey : "f0c8a45ea6c3dd26c2dc2b5f3c699f38d613dab273d0f8a6eae6abd9a9569063" ,
1561
1565
}))
1562
1566
}
1563
1567
})
0 commit comments