@@ -262,7 +262,7 @@ func HasExpectedMetadata(ctx context.Context, mdb *mdbv1.MongoDBCommunity, expec
262262 assert .NoError (t , err )
263263 assert .NotEmpty (t , statefulSetList .Items )
264264 for _ , s := range statefulSetList .Items {
265- containsMetadata (t , & s .ObjectMeta , expectedLabels , expectedAnnotations , "statefulset " + s .Name )
265+ containsMetadata (t , s .ObjectMeta , expectedLabels , expectedAnnotations , "statefulset " + s .Name )
266266 }
267267
268268 volumeList := corev1.PersistentVolumeList {}
@@ -272,7 +272,7 @@ func HasExpectedMetadata(ctx context.Context, mdb *mdbv1.MongoDBCommunity, expec
272272 for _ , s := range volumeList .Items {
273273 volName := s .Name
274274 if strings .HasPrefix (volName , "data-volume-" ) || strings .HasPrefix (volName , "logs-volume-" ) {
275- containsMetadata (t , & s .ObjectMeta , expectedLabels , expectedAnnotations , "volume " + volName )
275+ containsMetadata (t , s .ObjectMeta , expectedLabels , expectedAnnotations , "volume " + volName )
276276 }
277277 }
278278
@@ -304,12 +304,12 @@ func HasExpectedMetadata(ctx context.Context, mdb *mdbv1.MongoDBCommunity, expec
304304 continue
305305 }
306306
307- containsMetadata (t , & s .ObjectMeta , expectedLabels , expectedAnnotations , "pod " + s .Name )
307+ containsMetadata (t , s .ObjectMeta , expectedLabels , expectedAnnotations , "pod " + s .Name )
308308 }
309309 }
310310}
311311
312- func containsMetadata (t * testing.T , metadata * metav1.ObjectMeta , expectedLabels map [string ]string , expectedAnnotations map [string ]string , msg string ) {
312+ func containsMetadata (t * testing.T , metadata metav1.ObjectMeta , expectedLabels map [string ]string , expectedAnnotations map [string ]string , msg string ) {
313313 labels := metadata .Labels
314314 for k , v := range expectedLabels {
315315 assert .Contains (t , labels , k , msg + " has label " + k )
0 commit comments