Merge pull request #39444 from deads2k/generic-11-selectively

Automatic merge from submit-queue

selectively move to client-go packages

selectively update some low hanging fruit to use client-go.

@sttts
This commit is contained in:
Kubernetes Submit Queue
2017-01-05 07:51:11 -08:00
committed by GitHub
14 changed files with 66 additions and 65 deletions

View File

@@ -8,16 +8,6 @@ load(
"go_test",
)
go_library(
name = "go_default_library",
srcs = ["union.go"],
tags = ["automanaged"],
deps = [
"//pkg/auth/authorizer:go_default_library",
"//pkg/util/errors:go_default_library",
],
)
go_test(
name = "go_default_test",
srcs = ["union_test.go"],
@@ -25,3 +15,13 @@ go_test(
tags = ["automanaged"],
deps = ["//pkg/auth/authorizer:go_default_library"],
)
go_library(
name = "go_default_library",
srcs = ["union.go"],
tags = ["automanaged"],
deps = [
"//pkg/auth/authorizer:go_default_library",
"//vendor:k8s.io/client-go/pkg/util/errors",
],
)

View File

@@ -19,8 +19,8 @@ package union
import (
"strings"
utilerrors "k8s.io/client-go/pkg/util/errors"
"k8s.io/kubernetes/pkg/auth/authorizer"
utilerrors "k8s.io/kubernetes/pkg/util/errors"
)
// unionAuthzHandler authorizer against a chain of authorizer.Authorizer