@@ -30,8 +30,8 @@ var _ = Describe("SriovOperatorConfig controller", Ordered, func() {
3030 config .SetNamespace (testNamespace )
3131 config .SetName (constants .DefaultConfigName )
3232 config .Spec = sriovnetworkv1.SriovOperatorConfigSpec {
33- EnableInjector : func () * bool { b := true ; return & b }() ,
34- EnableOperatorWebhook : func () * bool { b := true ; return & b }() ,
33+ EnableInjector : true ,
34+ EnableOperatorWebhook : true ,
3535 ConfigDaemonNodeSelector : map [string ]string {},
3636 LogLevel : 2 ,
3737 }
@@ -100,8 +100,8 @@ var _ = Describe("SriovOperatorConfig controller", Ordered, func() {
100100 err := util .WaitForNamespacedObject (config , k8sClient , testNamespace , "default" , util .RetryInterval , util .APITimeout )
101101 Expect (err ).NotTo (HaveOccurred ())
102102 config .Spec = sriovnetworkv1.SriovOperatorConfigSpec {
103- EnableInjector : func () * bool { b := true ; return & b }() ,
104- EnableOperatorWebhook : func () * bool { b := true ; return & b }() ,
103+ EnableInjector : true ,
104+ EnableOperatorWebhook : true ,
105105 // ConfigDaemonNodeSelector: map[string]string{},
106106 LogLevel : 2 ,
107107 }
@@ -137,7 +137,7 @@ var _ = Describe("SriovOperatorConfig controller", Ordered, func() {
137137 err := util .WaitForNamespacedObject (config , k8sClient , testNamespace , "default" , util .RetryInterval , util .APITimeout )
138138 Expect (err ).NotTo (HaveOccurred ())
139139
140- * config .Spec .EnableInjector = false
140+ config .Spec .EnableInjector = false
141141 err = k8sClient .Update (ctx , config )
142142 Expect (err ).NotTo (HaveOccurred ())
143143
@@ -153,7 +153,7 @@ var _ = Describe("SriovOperatorConfig controller", Ordered, func() {
153153 err = util .WaitForNamespacedObject (config , k8sClient , testNamespace , "default" , util .RetryInterval , util .APITimeout )
154154 Expect (err ).NotTo (HaveOccurred ())
155155
156- * config .Spec .EnableInjector = true
156+ config .Spec .EnableInjector = true
157157 err = k8sClient .Update (ctx , config )
158158 Expect (err ).NotTo (HaveOccurred ())
159159
@@ -173,7 +173,7 @@ var _ = Describe("SriovOperatorConfig controller", Ordered, func() {
173173 err := util .WaitForNamespacedObject (config , k8sClient , testNamespace , "default" , util .RetryInterval , util .APITimeout )
174174 Expect (err ).NotTo (HaveOccurred ())
175175
176- * config .Spec .EnableOperatorWebhook = false
176+ config .Spec .EnableOperatorWebhook = false
177177 err = k8sClient .Update (ctx , config )
178178 Expect (err ).NotTo (HaveOccurred ())
179179
@@ -193,7 +193,7 @@ var _ = Describe("SriovOperatorConfig controller", Ordered, func() {
193193 err = util .WaitForNamespacedObject (config , k8sClient , testNamespace , "default" , util .RetryInterval , util .APITimeout )
194194 Expect (err ).NotTo (HaveOccurred ())
195195
196- * config .Spec .EnableOperatorWebhook = true
196+ config .Spec .EnableOperatorWebhook = true
197197 err = k8sClient .Update (ctx , config )
198198 Expect (err ).NotTo (HaveOccurred ())
199199
0 commit comments