Skip to content

Commit 68d167f

Browse files
author
Klaus Ma
authored
Merge pull request volcano-sh#39 from volcano-sh/bug/fix_queue_error
2 parents fc01bc2 + 4502c03 commit 68d167f

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

pkg/apis/batch/v1alpha1/job.go

+3
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ type JobSpec struct {
6060
// Specifies the default lifecycle of tasks
6161
// +optional
6262
Policies []LifecyclePolicy `json:"policies,omitempty" protobuf:"bytes,6,opt,name=policies"`
63+
64+
//Specifies the queue that will be used in the scheduler, "default" queue is used this leaves empty.
65+
Queue string `json:"queue,omitempty" protobuf:"bytes,7,opt,name=queue"`
6366
}
6467

6568
// VolumeSpec defines the specification of Volume, e.g. PVC

pkg/controllers/job/job_controller_actions.go

+1
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ func (cc *Controller) createPodGroupIfNotExist(job *vkv1.Job) error {
450450
},
451451
Spec: kbv1.PodGroupSpec{
452452
MinMember: job.Spec.MinAvailable,
453+
Queue: job.Spec.Queue,
453454
},
454455
}
455456

test/e2e/util.go

+1
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ func createJobInner(context *context, jobSpec *jobSpec) (*vkv1.Job, error) {
329329
},
330330
Spec: vkv1.JobSpec{
331331
Policies: jobSpec.policies,
332+
Queue: jobSpec.queue,
332333
},
333334
}
334335

0 commit comments

Comments
 (0)