File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 60
60
MaxJobBackOff = 360 * time .Second
61
61
)
62
62
63
- // Controller is a controller for Jobs.
63
+ // Controller ensures that all Job objects have corresponding pods to
64
+ // run their configured workload.
64
65
type Controller struct {
65
66
kubeClient clientset.Interface
66
67
podControl controller.PodControlInterface
@@ -90,7 +91,8 @@ type Controller struct {
90
91
recorder record.EventRecorder
91
92
}
92
93
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.
94
96
func NewController (podInformer coreinformers.PodInformer , jobInformer batchinformers.JobInformer , kubeClient clientset.Interface ) * Controller {
95
97
eventBroadcaster := record .NewBroadcaster ()
96
98
eventBroadcaster .StartLogging (klog .Infof )
You can’t perform that action at this time.
0 commit comments