@@ -78,6 +78,9 @@ profiles:
78
78
resources:
79
79
- name: memory
80
80
weight: 1
81
+ - name: VolumeBinding
82
+ args:
83
+ bindTimeoutSeconds: 300
81
84
` ),
82
85
wantProfiles : []config.KubeSchedulerProfile {
83
86
{
@@ -128,6 +131,12 @@ profiles:
128
131
Resources : []config.ResourceSpec {{Name : "memory" , Weight : 1 }},
129
132
},
130
133
},
134
+ {
135
+ Name : "VolumeBinding" ,
136
+ Args : & config.VolumeBindingArgs {
137
+ BindTimeoutSeconds : 300 ,
138
+ },
139
+ },
131
140
},
132
141
},
133
142
},
@@ -255,6 +264,8 @@ profiles:
255
264
args:
256
265
- name: NodeResourcesMostAllocated
257
266
args:
267
+ - name: VolumeBinding
268
+ args:
258
269
` ),
259
270
wantProfiles : []config.KubeSchedulerProfile {
260
271
{
@@ -283,6 +294,12 @@ profiles:
283
294
Resources : []config.ResourceSpec {{Name : "cpu" , Weight : 1 }, {Name : "memory" , Weight : 1 }},
284
295
},
285
296
},
297
+ {
298
+ Name : "VolumeBinding" ,
299
+ Args : & config.VolumeBindingArgs {
300
+ BindTimeoutSeconds : 600 ,
301
+ },
302
+ },
286
303
},
287
304
},
288
305
},
@@ -334,6 +351,14 @@ func TestCodecsEncodePluginConfig(t *testing.T) {
334
351
},
335
352
},
336
353
},
354
+ {
355
+ Name : "VolumeBinding" ,
356
+ Args : runtime.RawExtension {
357
+ Object : & v1alpha2.VolumeBindingArgs {
358
+ BindTimeoutSeconds : pointer .Int64Ptr (300 ),
359
+ },
360
+ },
361
+ },
337
362
{
338
363
Name : "RequestedToCapacityRatio" ,
339
364
Args : runtime.RawExtension {
@@ -390,6 +415,11 @@ profiles:
390
415
hardPodAffinityWeight: 5
391
416
kind: InterPodAffinityArgs
392
417
name: InterPodAffinity
418
+ - args:
419
+ apiVersion: kubescheduler.config.k8s.io/v1alpha2
420
+ bindTimeoutSeconds: 300
421
+ kind: VolumeBindingArgs
422
+ name: VolumeBinding
393
423
- args:
394
424
apiVersion: kubescheduler.config.k8s.io/v1alpha2
395
425
kind: RequestedToCapacityRatioArgs
@@ -431,6 +461,12 @@ profiles:
431
461
Resources : []config.ResourceSpec {{Name : "cpu" , Weight : 1 }},
432
462
},
433
463
},
464
+ {
465
+ Name : "VolumeBinding" ,
466
+ Args : & config.VolumeBindingArgs {
467
+ BindTimeoutSeconds : 300 ,
468
+ },
469
+ },
434
470
{
435
471
Name : "OutOfTreePlugin" ,
436
472
Args : & runtime.Unknown {
@@ -480,6 +516,11 @@ profiles:
480
516
- Name: cpu
481
517
Weight: 1
482
518
name: NodeResourcesMostAllocated
519
+ - args:
520
+ apiVersion: kubescheduler.config.k8s.io/v1alpha2
521
+ bindTimeoutSeconds: 300
522
+ kind: VolumeBindingArgs
523
+ name: VolumeBinding
483
524
- args:
484
525
foo: bar
485
526
name: OutOfTreePlugin
0 commit comments