mirror of https://github.com/k3s-io/k3s
remove method NewCronJobControllerFromClient
This method was originally introduced when cronjob was still called scheduledjob:pull/8/head7a34347f7f
Back then, both init methods had different signatures. Since the rename to cronjob (41d88d30dd
), this method is an alias to the normal initializer, have the same signature and is not used anywhere in the codebase. Since this method was never actually used for cronjobs, it doesn't seem removing it would need any deprecation notice.
parent
11104d75f1
commit
6bd0a7d6a9
|
@ -89,14 +89,6 @@ func NewCronJobController(kubeClient clientset.Interface) (*CronJobController, e
|
|||
return jm, nil
|
||||
}
|
||||
|
||||
func NewCronJobControllerFromClient(kubeClient clientset.Interface) (*CronJobController, error) {
|
||||
jm, err := NewCronJobController(kubeClient)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return jm, nil
|
||||
}
|
||||
|
||||
// Run the main goroutine responsible for watching and syncing jobs.
|
||||
func (jm *CronJobController) Run(stopCh <-chan struct{}) {
|
||||
defer utilruntime.HandleCrash()
|
||||
|
|
Loading…
Reference in New Issue