Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: googs1025 <googs1025@gmail.com>
  • Loading branch information
googs1025 committed Mar 31, 2024
1 parent a76f101 commit 1a0137c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/controllers/job/job_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (cc *jobcontroller) Name() string {
return "job-controller"
}

// Initialize creates the new Job job controller.
// Initialize creates the new Job controller.
func (cc *jobcontroller) Initialize(opt *framework.ControllerOption) error {
cc.kubeClient = opt.KubeClient
cc.vcClient = opt.VolcanoClient
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/queue/queue_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (c *queuecontroller) Name() string {
return "queue-controller"
}

// NewQueueController creates a QueueController.
// Initialize creates QueueController from option.
func (c *queuecontroller) Initialize(opt *framework.ControllerOption) error {
c.vcClient = opt.VolcanoClient
c.kubeClient = opt.KubeClient
Expand Down
2 changes: 1 addition & 1 deletion pkg/scheduler/util/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func BuildPodGroup(name, ns, queue string, minMember int32, taskMinMember map[st
}
}

// BuildPodGroup return podgroup
// BuildPodGroupWithPrio return podgroup with podgroup PriorityClassName
func BuildPodGroupWithPrio(name, ns, queue string, minMember int32, taskMinMember map[string]int32, status schedulingv1beta1.PodGroupPhase, prioName string) *schedulingv1beta1.PodGroup {
pg := BuildPodGroup(name, ns, queue, minMember, taskMinMember, status)
pg.Spec.PriorityClassName = prioName
Expand Down

0 comments on commit 1a0137c

Please sign in to comment.