File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,29 @@ burst: 300
192
192
expectErr : true ,
193
193
errContains : `no kind "Configuration" is registered for version "config.ray.io/v1beta1" in scheme` ,
194
194
},
195
+ {
196
+ name : "Set ReconcileConcurrency" ,
197
+ configData : `apiVersion: config.ray.io/v1alpha1
198
+ kind: Configuration
199
+ metricsAddr: ":8080"
200
+ probeAddr: ":8082"
201
+ enableLeaderElection: true
202
+ reconcileConcurrency: 100
203
+ ` ,
204
+ expectedConfig : configapi.Configuration {
205
+ TypeMeta : metav1.TypeMeta {
206
+ Kind : "Configuration" ,
207
+ APIVersion : "config.ray.io/v1alpha1" ,
208
+ },
209
+ MetricsAddr : ":8080" ,
210
+ ProbeAddr : ":8082" ,
211
+ EnableLeaderElection : ptr .To (true ),
212
+ ReconcileConcurrency : 100 ,
213
+ QPS : ptr .To (configapi .DefaultQPS ),
214
+ Burst : ptr .To (configapi .DefaultBurst ),
215
+ },
216
+ expectErr : false ,
217
+ },
195
218
}
196
219
197
220
for _ , testcase := range testcases {
You can’t perform that action at this time.
0 commit comments