@@ -990,7 +990,7 @@ var _ = Describe("ScalityUIComponent Controller", func() {
990990 if scalityUIComponent .Annotations == nil {
991991 scalityUIComponent .Annotations = make (map [string ]string )
992992 }
993- scalityUIComponent .Annotations ["ui.scality.com/force-refresh" ] = "true"
993+ scalityUIComponent .Annotations [ForceRefreshAnnotation ] = "true"
994994 Expect (k8sClient .Update (ctx , scalityUIComponent )).To (Succeed ())
995995
996996 By ("Update mock to return different config" )
@@ -1011,7 +1011,7 @@ var _ = Describe("ScalityUIComponent Controller", func() {
10111011
10121012 By ("Verify force-refresh annotation was removed" )
10131013 Expect (k8sClient .Get (ctx , typeNamespacedName , scalityUIComponent )).To (Succeed ())
1014- _ , hasAnnotation := scalityUIComponent .Annotations ["ui.scality.com/force-refresh" ]
1014+ _ , hasAnnotation := scalityUIComponent .Annotations [ForceRefreshAnnotation ]
10151015 Expect (hasAnnotation ).To (BeFalse (), "force-refresh annotation should be removed after fetch" )
10161016
10171017 By ("Fifth reconcile - no fetch (annotation removed, image unchanged)" )
@@ -1028,7 +1028,7 @@ var _ = Describe("ScalityUIComponent Controller", func() {
10281028 Name : "test-force-refresh-failure" ,
10291029 Namespace : "default" ,
10301030 Annotations : map [string ]string {
1031- "ui.scality.com/force-refresh" : "true" ,
1031+ ForceRefreshAnnotation : "true" ,
10321032 },
10331033 },
10341034 Spec : uiv1alpha1.ScalityUIComponentSpec {
@@ -1075,7 +1075,7 @@ var _ = Describe("ScalityUIComponent Controller", func() {
10751075
10761076 By ("Verify force-refresh annotation was NOT removed on fetch failure (only removed on parse/validation failure)" )
10771077 Expect (k8sClient .Get (ctx , typeNamespacedName , scalityUIComponent )).To (Succeed ())
1078- _ , hasAnnotation := scalityUIComponent .Annotations ["ui.scality.com/force-refresh" ]
1078+ _ , hasAnnotation := scalityUIComponent .Annotations [ForceRefreshAnnotation ]
10791079 Expect (hasAnnotation ).To (BeTrue (), "force-refresh annotation should remain on fetch failure for retry" )
10801080 })
10811081
@@ -1087,7 +1087,7 @@ var _ = Describe("ScalityUIComponent Controller", func() {
10871087 Name : "test-force-refresh-parse-fail" ,
10881088 Namespace : "default" ,
10891089 Annotations : map [string ]string {
1090- "ui.scality.com/force-refresh" : "true" ,
1090+ ForceRefreshAnnotation : "true" ,
10911091 },
10921092 },
10931093 Spec : uiv1alpha1.ScalityUIComponentSpec {
@@ -1132,7 +1132,7 @@ var _ = Describe("ScalityUIComponent Controller", func() {
11321132
11331133 By ("Verify force-refresh annotation was removed on parse failure" )
11341134 Expect (k8sClient .Get (ctx , typeNamespacedName , scalityUIComponent )).To (Succeed ())
1135- _ , hasAnnotation := scalityUIComponent .Annotations ["ui.scality.com/force-refresh" ]
1135+ _ , hasAnnotation := scalityUIComponent .Annotations [ForceRefreshAnnotation ]
11361136 Expect (hasAnnotation ).To (BeFalse (), "force-refresh annotation should be removed on parse failure" )
11371137 })
11381138 })
0 commit comments