Skip to content

Commit

Permalink
Merge pull request volcano-sh#297 from k82cn/add_comment
Browse files Browse the repository at this point in the history
Added comments for QueueJob
  • Loading branch information
k82cn authored Jul 10, 2018
2 parents c5171a1 + a16805c commit 1fe2f94
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/apis/v1alpha1/queuejob.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,26 @@ type QueueJob struct {
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// Specification of the desired behavior of a cron job, including the minAvailable
// +optional
Spec QueueJobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`

// Current status of QueueJob
// +optional
Status QueueJobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

// QueueJobSpec describes how the job execution will look like and when it will actually run
type QueueJobSpec struct {
// SchedulerName is the default value of `taskSpecs.template.spec.schedulerName`.
// +optional
SchedulerName string `json:"schedulerName,omitempty" protobuf:"bytes,1,opt,name=schedulerName"`

// SchedSpec specifies the parameters for scheduling.
// +optional
SchedSpec SchedulingSpecTemplate `json:"schedulingSpec,omitempty" protobuf:"bytes,2,opt,name=schedulingSpec"`

// TaskSpecs specifies the task specification of QueueJob
// +optional
TaskSpecs []TaskSpec `json:"taskSpecs,omitempty" protobuf:"bytes,3,opt,name=taskSpecs"`
}

Expand Down

0 comments on commit 1fe2f94

Please sign in to comment.