mirror of
https://github.com/rancher/types.git
synced 2025-09-28 05:25:03 +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 *daemonSetController) AddHandler(ctx context.Context, name string, handl
|
||||
}
|
||||
|
||||
func (c *daemonSetController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler DaemonSetHandlerFunc) {
|
||||
resource.PutClusterScoped(DaemonSetGroupVersionResource)
|
||||
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 *deploymentController) AddHandler(ctx context.Context, name string, hand
|
||||
}
|
||||
|
||||
func (c *deploymentController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler DeploymentHandlerFunc) {
|
||||
resource.PutClusterScoped(DeploymentGroupVersionResource)
|
||||
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 *replicaSetController) AddHandler(ctx context.Context, name string, hand
|
||||
}
|
||||
|
||||
func (c *replicaSetController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler ReplicaSetHandlerFunc) {
|
||||
resource.PutClusterScoped(ReplicaSetGroupVersionResource)
|
||||
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 *statefulSetController) AddHandler(ctx context.Context, name string, han
|
||||
}
|
||||
|
||||
func (c *statefulSetController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler StatefulSetHandlerFunc) {
|
||||
resource.PutClusterScoped(StatefulSetGroupVersionResource)
|
||||
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