mirror of
https://github.com/rancher/types.git
synced 2025-09-27 13:12:58 +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 *ingressController) AddHandler(ctx context.Context, name string, handler
|
||||
}
|
||||
|
||||
func (c *ingressController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler IngressHandlerFunc) {
|
||||
resource.PutClusterScoped(IngressGroupVersionResource)
|
||||
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
|
||||
if obj == nil {
|
||||
return handler(key, nil)
|
||||
|
@@ -150,6 +150,7 @@ func (c *podSecurityPolicyController) AddHandler(ctx context.Context, name strin
|
||||
}
|
||||
|
||||
func (c *podSecurityPolicyController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler PodSecurityPolicyHandlerFunc) {
|
||||
resource.PutClusterScoped(PodSecurityPolicyGroupVersionResource)
|
||||
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