1
0
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:
Dax McDonald
2019-05-28 19:47:11 -07:00
committed by Craig Jellick
parent 93c8efea22
commit 5081f27d3a
112 changed files with 135 additions and 2 deletions

View File

@@ -150,6 +150,7 @@ func (c *clusterAuthTokenController) AddHandler(ctx context.Context, name string
}
func (c *clusterAuthTokenController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler ClusterAuthTokenHandlerFunc) {
resource.PutClusterScoped(ClusterAuthTokenGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)

View File

@@ -150,6 +150,7 @@ func (c *clusterUserAttributeController) AddHandler(ctx context.Context, name st
}
func (c *clusterUserAttributeController) AddClusterScopedHandler(ctx context.Context, name, cluster string, handler ClusterUserAttributeHandlerFunc) {
resource.PutClusterScoped(ClusterUserAttributeGroupVersionResource)
c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) {
if obj == nil {
return handler(key, nil)