Skip to content

Commit 6ac7421

Browse files
author
Mario Valderrama
committed
Update comments
1 parent dbbe686 commit 6ac7421

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/controller/job/job_controller.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ var (
6060
MaxJobBackOff = 360 * time.Second
6161
)
6262

63-
// Controller is a controller for Jobs.
63+
// Controller ensures that all Job objects have corresponding pods to
64+
// run their configured workload.
6465
type Controller struct {
6566
kubeClient clientset.Interface
6667
podControl controller.PodControlInterface
@@ -90,7 +91,8 @@ type Controller struct {
9091
recorder record.EventRecorder
9192
}
9293

93-
// NewController creates a new Controller.
94+
// NewController creates a new Job controller that keeps the relevant pods
95+
// in sync with their corresponding Job objects.
9496
func NewController(podInformer coreinformers.PodInformer, jobInformer batchinformers.JobInformer, kubeClient clientset.Interface) *Controller {
9597
eventBroadcaster := record.NewBroadcaster()
9698
eventBroadcaster.StartLogging(klog.Infof)

0 commit comments

Comments
 (0)