mirror of
https://github.com/rancher/types.git
synced 2025-09-26 04:38:17 +00:00
Update vendor and generate code
This commit is contained in:
committed by
Craig Jellick
parent
93c8efea22
commit
5081f27d3a
@@ -151,6 +151,7 @@ func (c *jobController) AddHandler(ctx context.Context, name string, handler Job
|
||||
}
|
||||
|
||||
func (c *jobController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler JobHandlerFunc) {
|
||||
resource.PutClusterScoped(JobGroupVersionResource)
|
||||
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
|
||||
if obj == nil {
|
||||
return handler(key, nil)
|
||||
|
@@ -151,6 +151,7 @@ func (c *cronJobController) AddHandler(ctx context.Context, name string, handler
|
||||
}
|
||||
|
||||
func (c *cronJobController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler CronJobHandlerFunc) {
|
||||
resource.PutClusterScoped(CronJobGroupVersionResource)
|
||||
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
|
||||
if obj == nil {
|
||||
return handler(key, nil)
|
||||
|
Reference in New Issue
Block a user