@@ -329,7 +329,7 @@ func Test_reconcileResourceTemplate(t *testing.T) {
329329 "app" : "test" ,
330330 },
331331 Annotations : map [string ]string {
332- dependenciesAnnotationKey : "[{\" apiVersion\" :\" apps/v1\" ,\" kind\" :\" Deployment\" ,\" namespace\" :\" test\" ,\" name\" :\" demo-app\" }]" ,
332+ util . DependenciesAnnotationKey : "[{\" apiVersion\" :\" apps/v1\" ,\" kind\" :\" Deployment\" ,\" namespace\" :\" test\" ,\" name\" :\" demo-app\" }]" ,
333333 },
334334 },
335335 Spec : workv1alpha2.ResourceBindingSpec {
@@ -394,7 +394,7 @@ func Test_dependentObjectReferenceMatches(t *testing.T) {
394394 },
395395 referenceBinding : & workv1alpha2.ResourceBinding {
396396 ObjectMeta : metav1.ObjectMeta {Annotations : map [string ]string {
397- dependenciesAnnotationKey : "[{\" apiVersion\" :\" example-stgzr.karmada.io/v1alpha1\" ,\" kind\" :\" Foot5zmh\" ,\" namespace\" :\" karmadatest-vpvll\" ,\" name\" :\" cr-fxzq6\" }]" ,
397+ util . DependenciesAnnotationKey : "[{\" apiVersion\" :\" example-stgzr.karmada.io/v1alpha1\" ,\" kind\" :\" Foot5zmh\" ,\" namespace\" :\" karmadatest-vpvll\" ,\" name\" :\" cr-fxzq6\" }]" ,
398398 }},
399399 },
400400 },
@@ -415,7 +415,7 @@ func Test_dependentObjectReferenceMatches(t *testing.T) {
415415 },
416416 referenceBinding : & workv1alpha2.ResourceBinding {
417417 ObjectMeta : metav1.ObjectMeta {Annotations : map [string ]string {
418- dependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" ConfigMap\" ,\" namespace\" :\" karmadatest-h46wh\" ,\" name\" :\" configmap-8w426\" }]" ,
418+ util . DependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" ConfigMap\" ,\" namespace\" :\" karmadatest-h46wh\" ,\" name\" :\" configmap-8w426\" }]" ,
419419 }},
420420 },
421421 },
@@ -437,7 +437,7 @@ func Test_dependentObjectReferenceMatches(t *testing.T) {
437437 },
438438 referenceBinding : & workv1alpha2.ResourceBinding {
439439 ObjectMeta : metav1.ObjectMeta {Annotations : map [string ]string {
440- dependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" ConfigMap\" ,\" namespace\" :\" test\" ,\" labelSelector\" :{\" matchExpressions\" :[{\" key\" :\" app\" ,\" operator\" :\" In\" ,\" values\" :[\" test\" ]}]}}]" ,
440+ util . DependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" ConfigMap\" ,\" namespace\" :\" test\" ,\" labelSelector\" :{\" matchExpressions\" :[{\" key\" :\" app\" ,\" operator\" :\" In\" ,\" values\" :[\" test\" ]}]}}]" ,
441441 }},
442442 },
443443 },
@@ -1324,7 +1324,7 @@ func Test_recordDependencies(t *testing.T) {
13241324 Namespace : "test" ,
13251325 ResourceVersion : "1001" ,
13261326 Annotations : map [string ]string {
1327- dependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" Pod\" ,\" namespace\" :\" default\" ,\" name\" :\" pod\" }]" ,
1327+ util . DependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" Pod\" ,\" namespace\" :\" default\" ,\" name\" :\" pod\" }]" ,
13281328 },
13291329 },
13301330 Spec : workv1alpha2.ResourceBindingSpec {
@@ -1352,7 +1352,7 @@ func Test_recordDependencies(t *testing.T) {
13521352 Namespace : "test" ,
13531353 ResourceVersion : "1000" ,
13541354 Annotations : map [string ]string {
1355- dependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" Pod\" ,\" namespace\" :\" default\" ,\" name\" :\" pod\" }]" ,
1355+ util . DependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" Pod\" ,\" namespace\" :\" default\" ,\" name\" :\" pod\" }]" ,
13561356 },
13571357 },
13581358 Spec : workv1alpha2.ResourceBindingSpec {
@@ -1375,7 +1375,7 @@ func Test_recordDependencies(t *testing.T) {
13751375 Namespace : "test" ,
13761376 ResourceVersion : "1000" ,
13771377 Annotations : map [string ]string {
1378- dependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" Pod\" ,\" namespace\" :\" default\" ,\" name\" :\" pod\" }]" ,
1378+ util . DependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" Pod\" ,\" namespace\" :\" default\" ,\" name\" :\" pod\" }]" ,
13791379 },
13801380 },
13811381 Spec : workv1alpha2.ResourceBindingSpec {
@@ -1403,7 +1403,7 @@ func Test_recordDependencies(t *testing.T) {
14031403 Namespace : "test" ,
14041404 ResourceVersion : "1000" ,
14051405 Annotations : map [string ]string {
1406- dependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" Pod\" ,\" namespace\" :\" default\" ,\" name\" :\" pod\" }]" ,
1406+ util . DependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" Pod\" ,\" namespace\" :\" default\" ,\" name\" :\" pod\" }]" ,
14071407 },
14081408 },
14091409 Spec : workv1alpha2.ResourceBindingSpec {
@@ -1431,7 +1431,7 @@ func Test_recordDependencies(t *testing.T) {
14311431 Namespace : "test" ,
14321432 ResourceVersion : "1000" ,
14331433 Annotations : map [string ]string {
1434- dependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" Pod\" ,\" namespace\" :\" default\" ,\" name\" :\" pod\" }]" ,
1434+ util . DependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" Pod\" ,\" namespace\" :\" default\" ,\" name\" :\" pod\" }]" ,
14351435 },
14361436 },
14371437 Spec : workv1alpha2.ResourceBindingSpec {
@@ -1479,7 +1479,7 @@ func Test_recordDependencies(t *testing.T) {
14791479 Namespace : "test" ,
14801480 ResourceVersion : "1001" ,
14811481 Annotations : map [string ]string {
1482- dependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" Pod\" ,\" namespace\" :\" default\" ,\" name\" :\" pod\" }]" ,
1482+ util . DependenciesAnnotationKey : "[{\" apiVersion\" :\" v1\" ,\" kind\" :\" Pod\" ,\" namespace\" :\" default\" ,\" name\" :\" pod\" }]" ,
14831483 },
14841484 },
14851485 Spec : workv1alpha2.ResourceBindingSpec {
0 commit comments