CronJob: Add ControllerRef on all created Jobs.

This commit is contained in:
Anthony Yeh
2017-02-26 19:16:54 -08:00
parent 4c954d6dbb
commit d72eebd3fc
4 changed files with 37 additions and 3 deletions

View File

@@ -56,6 +56,9 @@ import (
// Utilities for dealing with Jobs and CronJobs and time.
// controllerKind contains the schema.GroupVersionKind for this controller type.
var controllerKind = batchv2alpha1.SchemeGroupVersion.WithKind("CronJob")
type CronJobController struct {
kubeClient clientset.Interface
jobControl jobControlInterface