@@ -42,7 +42,7 @@ var _ = Describe("imageStream tests", func() {
42
42
43
43
Context ("test imageStreamHandler" , func () {
44
44
It ("should not create the ImageStream resource if the FG is not set" , func () {
45
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (false )
45
+ hco .Spec .EnableCommonBootImageImport = ptr .To (false )
46
46
47
47
getImageStreamFileLocation = func () string {
48
48
return testFilesLocation
@@ -69,7 +69,7 @@ var _ = Describe("imageStream tests", func() {
69
69
})
70
70
71
71
It ("should delete the ImageStream resource if the FG is not set" , func () {
72
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (false )
72
+ hco .Spec .EnableCommonBootImageImport = ptr .To (false )
73
73
74
74
getImageStreamFileLocation = func () string {
75
75
return testFilesLocation
@@ -137,7 +137,7 @@ var _ = Describe("imageStream tests", func() {
137
137
138
138
hcoNamespace := commontestutils .NewHcoNamespace ()
139
139
hco := commontestutils .NewHco ()
140
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
140
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
141
141
eventEmitter := commontestutils .NewEventEmitterMock ()
142
142
ci := commontestutils.ClusterInfoMock {}
143
143
cli := commontestutils .InitClient ([]client.Object {hcoNamespace , hco , ci .GetCSV ()})
@@ -163,7 +163,7 @@ var _ = Describe("imageStream tests", func() {
163
163
164
164
By ("Run again, this time when the FG is false" )
165
165
eventEmitter .Reset ()
166
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (false )
166
+ hco .Spec .EnableCommonBootImageImport = ptr .To (false )
167
167
req = commontestutils .NewReq (hco )
168
168
Expect (handler .Ensure (req )).To (Succeed ())
169
169
@@ -229,7 +229,7 @@ var _ = Describe("imageStream tests", func() {
229
229
}
230
230
231
231
hco := commontestutils .NewHco ()
232
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
232
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
233
233
cli := commontestutils .InitClient ([]client.Object {hco })
234
234
handlers , err := getImageStreamHandlers (logger , cli , schemeForTest , hco )
235
235
Expect (err ).ToNot (HaveOccurred ())
@@ -280,7 +280,7 @@ var _ = Describe("imageStream tests", func() {
280
280
Expect (imageStreamNames ).To (ContainElement ("test-image-stream" ))
281
281
282
282
hco := commontestutils .NewHco ()
283
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
283
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
284
284
By ("apply the ImageStream CRs" , func () {
285
285
req := commontestutils .NewReq (hco )
286
286
res := handlers [0 ].ensure (req )
@@ -344,7 +344,7 @@ var _ = Describe("imageStream tests", func() {
344
344
Expect (imageStreamNames ).To (ContainElement ("test-image-stream" ))
345
345
346
346
hco := commontestutils .NewHco ()
347
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
347
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
348
348
349
349
By ("apply the ImageStream CRs" , func () {
350
350
req := commontestutils .NewReq (hco )
@@ -417,7 +417,7 @@ var _ = Describe("imageStream tests", func() {
417
417
Expect (imageStreamNames ).To (ContainElement ("test-image-stream" ))
418
418
419
419
hco := commontestutils .NewHco ()
420
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
420
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
421
421
422
422
By ("apply the ImageStream CRs" , func () {
423
423
req := commontestutils .NewReq (hco )
@@ -486,7 +486,7 @@ var _ = Describe("imageStream tests", func() {
486
486
Expect (imageStreamNames ).To (ContainElement ("test-image-stream" ))
487
487
488
488
hco := commontestutils .NewHco ()
489
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
489
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
490
490
491
491
By ("apply the ImageStream CRs" , func () {
492
492
req := commontestutils .NewReq (hco )
@@ -555,7 +555,7 @@ var _ = Describe("imageStream tests", func() {
555
555
Expect (imageStreamNames ).To (ContainElement ("test-image-stream" ))
556
556
557
557
hco := commontestutils .NewHco ()
558
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
558
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
559
559
560
560
By ("apply the ImageStream CRs" , func () {
561
561
req := commontestutils .NewReq (hco )
@@ -625,7 +625,7 @@ var _ = Describe("imageStream tests", func() {
625
625
Expect (imageStreamNames ).To (ContainElement ("test-image-stream" ))
626
626
627
627
hco := commontestutils .NewHco ()
628
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
628
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
629
629
630
630
By ("apply the ImageStream CRs" , func () {
631
631
req := commontestutils .NewReq (hco )
@@ -702,7 +702,7 @@ var _ = Describe("imageStream tests", func() {
702
702
Expect (imageStreamNames ).To (ContainElement ("test-image-stream" ))
703
703
704
704
hco := commontestutils .NewHco ()
705
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
705
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
706
706
707
707
By ("apply the ImageStream CRs" , func () {
708
708
req := commontestutils .NewReq (hco )
@@ -753,7 +753,7 @@ var _ = Describe("imageStream tests", func() {
753
753
}
754
754
755
755
hco := commontestutils .NewHco ()
756
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
756
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
757
757
hco .Spec .CommonBootImageNamespace = ptr .To (customNS )
758
758
759
759
cli := commontestutils .InitClient ([]client.Object {hco })
@@ -781,7 +781,7 @@ var _ = Describe("imageStream tests", func() {
781
781
782
782
By ("create imagestream in the default namespace" )
783
783
hco := commontestutils .NewHco ()
784
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
784
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
785
785
cli := commontestutils .InitClient ([]client.Object {hco })
786
786
handlers , err := getImageStreamHandlers (logger , cli , schemeForTest , hco )
787
787
Expect (err ).ToNot (HaveOccurred ())
@@ -804,7 +804,7 @@ var _ = Describe("imageStream tests", func() {
804
804
805
805
By ("replace the image stream with a new one in the custom namespace" )
806
806
hco = commontestutils .NewHco ()
807
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
807
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
808
808
hco .Spec .CommonBootImageNamespace = ptr .To (customNS )
809
809
Expect (objectreferencesv1 .SetObjectReference (& hco .Status .RelatedObjects , * ref )).To (Succeed ())
810
810
@@ -835,7 +835,7 @@ var _ = Describe("imageStream tests", func() {
835
835
836
836
By ("create imagestream in a custom namespace" )
837
837
hco := commontestutils .NewHco ()
838
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
838
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
839
839
hco .Spec .CommonBootImageNamespace = ptr .To (customNS )
840
840
841
841
cli := commontestutils .InitClient ([]client.Object {hco })
@@ -860,7 +860,7 @@ var _ = Describe("imageStream tests", func() {
860
860
861
861
By ("replace the image stream with a new one in the default namespace" )
862
862
hco = commontestutils .NewHco ()
863
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
863
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
864
864
Expect (objectreferencesv1 .SetObjectReference (& hco .Status .RelatedObjects , * ref )).To (Succeed ())
865
865
866
866
req = commontestutils .NewReq (hco )
@@ -890,7 +890,7 @@ var _ = Describe("imageStream tests", func() {
890
890
891
891
By ("create imagestream in a custom namespace" )
892
892
hco := commontestutils .NewHco ()
893
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
893
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
894
894
hco .Spec .CommonBootImageNamespace = ptr .To (customNS )
895
895
896
896
cli := commontestutils .InitClient ([]client.Object {hco })
@@ -915,7 +915,7 @@ var _ = Describe("imageStream tests", func() {
915
915
916
916
By ("replace the image stream with a new one in another custom namespace" )
917
917
hco = commontestutils .NewHco ()
918
- hco .Spec .FeatureGates . EnableCommonBootImageImport = ptr .To (true )
918
+ hco .Spec .EnableCommonBootImageImport = ptr .To (true )
919
919
hco .Spec .CommonBootImageNamespace = ptr .To (customNS + "1" )
920
920
Expect (objectreferencesv1 .SetObjectReference (& hco .Status .RelatedObjects , * ref )).To (Succeed ())
921
921
0 commit comments