From 1c4849c4032df1c2eb7ec5cba2eae74fecb4672d Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Mon, 16 Jan 2017 16:20:40 +0100 Subject: [PATCH 1/3] Fix hack/verify-staging-imports.sh on Mac --- hack/verify-staging-imports.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/verify-staging-imports.sh b/hack/verify-staging-imports.sh index 56944b4055a..14e289f8231 100755 --- a/hack/verify-staging-imports.sh +++ b/hack/verify-staging-imports.sh @@ -25,7 +25,7 @@ kube::golang::setup_env for dep in $(ls -1 ${KUBE_ROOT}/staging/src/k8s.io/); do - if go list -f {{.Deps}} ./vendor/k8s.io/${dep}/... | sed 's/ /\n/g' - | grep k8s.io/kubernetes | grep -v 'k8s.io/kubernetes/vendor' | LC_ALL=C sort -u | grep -e "."; then + if go list -f {{.Deps}} ./vendor/k8s.io/${dep}/... | tr " " '\n' | grep k8s.io/kubernetes | grep -v 'k8s.io/kubernetes/vendor' | LC_ALL=C sort -u | grep -e "."; then echo "${dep} has a cyclical dependency" exit 1 fi From bf307d9948af7c5e7b246bba62606ca2f8358d19 Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Mon, 16 Jan 2017 12:43:56 +0100 Subject: [PATCH 2/3] genericapiserver: cut off pkg/serviceaccount dependency --- pkg/controller/BUILD | 1 + pkg/controller/client_builder.go | 3 +- pkg/genericapiserver/api/filters/BUILD | 2 +- .../api/filters/impersonation.go | 2 +- pkg/registry/rbac/validation/BUILD | 2 +- pkg/registry/rbac/validation/rule.go | 3 +- pkg/serviceaccount/BUILD | 10 +- pkg/serviceaccount/jwt.go | 5 +- pkg/serviceaccount/jwt_test.go | 7 +- pkg/serviceaccount/util.go | 58 +- .../pkg/authentication/serviceaccount/util.go | 73 + .../serviceaccount/util_test.go | 0 test/e2e/BUILD | 2 +- test/e2e/examples.go | 2 +- test/e2e/ingress.go | 2 +- test/e2e/kubectl.go | 2 +- test/e2e/node_problem_detector.go | 2 +- test/e2e/pre_stop.go | 2 +- test/integration/auth/auth_test.go | 2 +- .../serviceaccount/service_account_test.go | 3 +- vendor/BUILD | 3864 +++++++++-------- 21 files changed, 2041 insertions(+), 2006 deletions(-) create mode 100644 staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util.go rename {pkg => staging/src/k8s.io/apiserver/pkg/authentication}/serviceaccount/util_test.go (100%) diff --git a/pkg/controller/BUILD b/pkg/controller/BUILD index 4fed427d070..09364d6c750 100644 --- a/pkg/controller/BUILD +++ b/pkg/controller/BUILD @@ -43,6 +43,7 @@ go_library( "//vendor:k8s.io/apimachinery/pkg/runtime/schema", "//vendor:k8s.io/apimachinery/pkg/util/sets", "//vendor:k8s.io/apimachinery/pkg/watch", + "//vendor:k8s.io/apiserver/pkg/authentication/serviceaccount", ], ) diff --git a/pkg/controller/client_builder.go b/pkg/controller/client_builder.go index 2e56277d81a..76c52528b2b 100644 --- a/pkg/controller/client_builder.go +++ b/pkg/controller/client_builder.go @@ -24,6 +24,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" + apiserverserviceaccount "k8s.io/apiserver/pkg/authentication/serviceaccount" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/v1" "k8s.io/kubernetes/pkg/client/cache" @@ -146,7 +147,7 @@ func (b SAControllerClientBuilder) Config(name string) (*restclient.Config, erro } // TODO maybe verify the token is valid clientConfig.BearerToken = string(secret.Data[v1.ServiceAccountTokenKey]) - restclient.AddUserAgent(clientConfig, serviceaccount.MakeUsername(b.Namespace, name)) + restclient.AddUserAgent(clientConfig, apiserverserviceaccount.MakeUsername(b.Namespace, name)) return true, nil default: diff --git a/pkg/genericapiserver/api/filters/BUILD b/pkg/genericapiserver/api/filters/BUILD index 30c65accff0..79a003eab6f 100644 --- a/pkg/genericapiserver/api/filters/BUILD +++ b/pkg/genericapiserver/api/filters/BUILD @@ -22,10 +22,10 @@ go_library( "//pkg/api:go_default_library", "//pkg/apis/authentication:go_default_library", "//pkg/genericapiserver/api/handlers/responsewriters:go_default_library", - "//pkg/serviceaccount:go_default_library", "//vendor:github.com/golang/glog", "//vendor:github.com/pborman/uuid", "//vendor:k8s.io/apimachinery/pkg/util/net", + "//vendor:k8s.io/apiserver/pkg/authentication/serviceaccount", "//vendor:k8s.io/apiserver/pkg/authentication/user", "//vendor:k8s.io/apiserver/pkg/authorization/authorizer", "//vendor:k8s.io/apiserver/pkg/httplog", diff --git a/pkg/genericapiserver/api/filters/impersonation.go b/pkg/genericapiserver/api/filters/impersonation.go index 50cf3ae22e8..fce2de65fd8 100644 --- a/pkg/genericapiserver/api/filters/impersonation.go +++ b/pkg/genericapiserver/api/filters/impersonation.go @@ -24,6 +24,7 @@ import ( "github.com/golang/glog" + "k8s.io/apiserver/pkg/authentication/serviceaccount" "k8s.io/apiserver/pkg/authentication/user" "k8s.io/apiserver/pkg/authorization/authorizer" "k8s.io/apiserver/pkg/httplog" @@ -31,7 +32,6 @@ import ( "k8s.io/kubernetes/pkg/api" authenticationapi "k8s.io/kubernetes/pkg/apis/authentication" "k8s.io/kubernetes/pkg/genericapiserver/api/handlers/responsewriters" - "k8s.io/kubernetes/pkg/serviceaccount" ) // WithImpersonation is a filter that will inspect and check requests that attempt to change the user.Info for their requests diff --git a/pkg/registry/rbac/validation/BUILD b/pkg/registry/rbac/validation/BUILD index 0d5de2f3b9c..acfda09f006 100644 --- a/pkg/registry/rbac/validation/BUILD +++ b/pkg/registry/rbac/validation/BUILD @@ -33,10 +33,10 @@ go_library( tags = ["automanaged"], deps = [ "//pkg/apis/rbac:go_default_library", - "//pkg/serviceaccount:go_default_library", "//vendor:github.com/golang/glog", "//vendor:k8s.io/apimachinery/pkg/api/errors", "//vendor:k8s.io/apimachinery/pkg/util/errors", + "//vendor:k8s.io/apiserver/pkg/authentication/serviceaccount", "//vendor:k8s.io/apiserver/pkg/authentication/user", "//vendor:k8s.io/apiserver/pkg/request", ], diff --git a/pkg/registry/rbac/validation/rule.go b/pkg/registry/rbac/validation/rule.go index 498b2de8949..88432ac6d49 100644 --- a/pkg/registry/rbac/validation/rule.go +++ b/pkg/registry/rbac/validation/rule.go @@ -21,12 +21,13 @@ import ( "fmt" "github.com/golang/glog" + apierrors "k8s.io/apimachinery/pkg/api/errors" utilerrors "k8s.io/apimachinery/pkg/util/errors" + "k8s.io/apiserver/pkg/authentication/serviceaccount" "k8s.io/apiserver/pkg/authentication/user" genericapirequest "k8s.io/apiserver/pkg/request" "k8s.io/kubernetes/pkg/apis/rbac" - "k8s.io/kubernetes/pkg/serviceaccount" ) type AuthorizationRuleResolver interface { diff --git a/pkg/serviceaccount/BUILD b/pkg/serviceaccount/BUILD index 6011cdd120d..017518359ec 100644 --- a/pkg/serviceaccount/BUILD +++ b/pkg/serviceaccount/BUILD @@ -8,13 +8,6 @@ load( "go_test", ) -go_test( - name = "go_default_test", - srcs = ["util_test.go"], - library = ":go_default_library", - tags = ["automanaged"], -) - go_library( name = "go_default_library", srcs = [ @@ -25,10 +18,10 @@ go_library( deps = [ "//pkg/api:go_default_library", "//pkg/api/v1:go_default_library", - "//pkg/api/validation/genericvalidation:go_default_library", "//vendor:github.com/dgrijalva/jwt-go", "//vendor:github.com/golang/glog", "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", + "//vendor:k8s.io/apiserver/pkg/authentication/serviceaccount", "//vendor:k8s.io/apiserver/pkg/authentication/user", ], ) @@ -43,6 +36,7 @@ go_test( "//pkg/client/clientset_generated/clientset/fake:go_default_library", "//pkg/controller/serviceaccount:go_default_library", "//pkg/serviceaccount:go_default_library", + "//vendor:k8s.io/apiserver/pkg/authentication/serviceaccount", ], ) diff --git a/pkg/serviceaccount/jwt.go b/pkg/serviceaccount/jwt.go index 51590fa946e..ad53a1802a5 100644 --- a/pkg/serviceaccount/jwt.go +++ b/pkg/serviceaccount/jwt.go @@ -27,6 +27,7 @@ import ( "io/ioutil" "k8s.io/apiserver/pkg/authentication/authenticator" + apiserverserviceaccount "k8s.io/apiserver/pkg/authentication/serviceaccount" "k8s.io/apiserver/pkg/authentication/user" "k8s.io/kubernetes/pkg/api/v1" @@ -176,7 +177,7 @@ func (j *jwtTokenGenerator) GenerateToken(serviceAccount v1.ServiceAccount, secr claims[IssuerClaim] = Issuer // Username - claims[SubjectClaim] = MakeUsername(serviceAccount.Namespace, serviceAccount.Name) + claims[SubjectClaim] = apiserverserviceaccount.MakeUsername(serviceAccount.Namespace, serviceAccount.Name) // Persist enough structured info for the authenticator to be able to look up the service account and secret claims[NamespaceClaim] = serviceAccount.Namespace @@ -287,7 +288,7 @@ func (j *jwtTokenAuthenticator) AuthenticateToken(token string) (user.Info, bool return nil, false, errors.New("serviceAccountUID claim is missing") } - subjectNamespace, subjectName, err := SplitUsername(sub) + subjectNamespace, subjectName, err := apiserverserviceaccount.SplitUsername(sub) if err != nil || subjectNamespace != namespace || subjectName != serviceAccountName { return nil, false, errors.New("sub claim is invalid") } diff --git a/pkg/serviceaccount/jwt_test.go b/pkg/serviceaccount/jwt_test.go index 07ec40c138a..f72a4180b00 100644 --- a/pkg/serviceaccount/jwt_test.go +++ b/pkg/serviceaccount/jwt_test.go @@ -22,6 +22,7 @@ import ( "reflect" "testing" + apiserverserviceaccount "k8s.io/apiserver/pkg/authentication/serviceaccount" "k8s.io/kubernetes/pkg/api/v1" clientset "k8s.io/kubernetes/pkg/client/clientset_generated/clientset" "k8s.io/kubernetes/pkg/client/clientset_generated/clientset/fake" @@ -349,8 +350,8 @@ func TestTokenGenerateAndValidate(t *testing.T) { } func TestMakeSplitUsername(t *testing.T) { - username := serviceaccount.MakeUsername("ns", "name") - ns, name, err := serviceaccount.SplitUsername(username) + username := apiserverserviceaccount.MakeUsername("ns", "name") + ns, name, err := apiserverserviceaccount.SplitUsername(username) if err != nil { t.Errorf("Unexpected error %v", err) } @@ -360,7 +361,7 @@ func TestMakeSplitUsername(t *testing.T) { invalid := []string{"test", "system:serviceaccount", "system:serviceaccount:", "system:serviceaccount:ns", "system:serviceaccount:ns:name:extra"} for _, n := range invalid { - _, _, err := serviceaccount.SplitUsername("test") + _, _, err := apiserverserviceaccount.SplitUsername("test") if err == nil { t.Errorf("Expected error for %s", n) } diff --git a/pkg/serviceaccount/util.go b/pkg/serviceaccount/util.go index 88cc423dbb2..1fd5bd899da 100644 --- a/pkg/serviceaccount/util.go +++ b/pkg/serviceaccount/util.go @@ -17,70 +17,18 @@ limitations under the License. package serviceaccount import ( - "fmt" - "strings" - + apiserverserviceaccount "k8s.io/apiserver/pkg/authentication/serviceaccount" "k8s.io/apiserver/pkg/authentication/user" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/v1" - "k8s.io/kubernetes/pkg/api/validation/genericvalidation" ) -const ( - ServiceAccountUsernamePrefix = "system:serviceaccount:" - ServiceAccountUsernameSeparator = ":" - ServiceAccountGroupPrefix = "system:serviceaccounts:" - AllServiceAccountsGroup = "system:serviceaccounts" -) - -// MakeUsername generates a username from the given namespace and ServiceAccount name. -// The resulting username can be passed to SplitUsername to extract the original namespace and ServiceAccount name. -func MakeUsername(namespace, name string) string { - return ServiceAccountUsernamePrefix + namespace + ServiceAccountUsernameSeparator + name -} - -var invalidUsernameErr = fmt.Errorf("Username must be in the form %s", MakeUsername("namespace", "name")) - -// SplitUsername returns the namespace and ServiceAccount name embedded in the given username, -// or an error if the username is not a valid name produced by MakeUsername -func SplitUsername(username string) (string, string, error) { - if !strings.HasPrefix(username, ServiceAccountUsernamePrefix) { - return "", "", invalidUsernameErr - } - trimmed := strings.TrimPrefix(username, ServiceAccountUsernamePrefix) - parts := strings.Split(trimmed, ServiceAccountUsernameSeparator) - if len(parts) != 2 { - return "", "", invalidUsernameErr - } - namespace, name := parts[0], parts[1] - if len(genericvalidation.ValidateNamespaceName(namespace, false)) != 0 { - return "", "", invalidUsernameErr - } - if len(genericvalidation.ValidateServiceAccountName(name, false)) != 0 { - return "", "", invalidUsernameErr - } - return namespace, name, nil -} - -// MakeGroupNames generates service account group names for the given namespace and ServiceAccount name -func MakeGroupNames(namespace, name string) []string { - return []string{ - AllServiceAccountsGroup, - MakeNamespaceGroupName(namespace), - } -} - -// MakeNamespaceGroupName returns the name of the group all service accounts in the namespace are included in -func MakeNamespaceGroupName(namespace string) string { - return ServiceAccountGroupPrefix + namespace -} - // UserInfo returns a user.Info interface for the given namespace, service account name and UID func UserInfo(namespace, name, uid string) user.Info { return &user.DefaultInfo{ - Name: MakeUsername(namespace, name), + Name: apiserverserviceaccount.MakeUsername(namespace, name), UID: uid, - Groups: MakeGroupNames(namespace, name), + Groups: apiserverserviceaccount.MakeGroupNames(namespace, name), } } diff --git a/staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util.go b/staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util.go new file mode 100644 index 00000000000..a4e7c4b3d5d --- /dev/null +++ b/staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util.go @@ -0,0 +1,73 @@ +/* +Copyright 2014 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package serviceaccount + +import ( + "fmt" + "strings" + + "k8s.io/kubernetes/pkg/api/validation/genericvalidation" +) + +const ( + ServiceAccountUsernamePrefix = "system:serviceaccount:" + ServiceAccountUsernameSeparator = ":" + ServiceAccountGroupPrefix = "system:serviceaccounts:" + AllServiceAccountsGroup = "system:serviceaccounts" +) + +// MakeUsername generates a username from the given namespace and ServiceAccount name. +// The resulting username can be passed to SplitUsername to extract the original namespace and ServiceAccount name. +func MakeUsername(namespace, name string) string { + return ServiceAccountUsernamePrefix + namespace + ServiceAccountUsernameSeparator + name +} + +var invalidUsernameErr = fmt.Errorf("Username must be in the form %s", MakeUsername("namespace", "name")) + +// SplitUsername returns the namespace and ServiceAccount name embedded in the given username, +// or an error if the username is not a valid name produced by MakeUsername +func SplitUsername(username string) (string, string, error) { + if !strings.HasPrefix(username, ServiceAccountUsernamePrefix) { + return "", "", invalidUsernameErr + } + trimmed := strings.TrimPrefix(username, ServiceAccountUsernamePrefix) + parts := strings.Split(trimmed, ServiceAccountUsernameSeparator) + if len(parts) != 2 { + return "", "", invalidUsernameErr + } + namespace, name := parts[0], parts[1] + if len(genericvalidation.ValidateNamespaceName(namespace, false)) != 0 { + return "", "", invalidUsernameErr + } + if len(genericvalidation.ValidateServiceAccountName(name, false)) != 0 { + return "", "", invalidUsernameErr + } + return namespace, name, nil +} + +// MakeGroupNames generates service account group names for the given namespace and ServiceAccount name +func MakeGroupNames(namespace, name string) []string { + return []string{ + AllServiceAccountsGroup, + MakeNamespaceGroupName(namespace), + } +} + +// MakeNamespaceGroupName returns the name of the group all service accounts in the namespace are included in +func MakeNamespaceGroupName(namespace string) string { + return ServiceAccountGroupPrefix + namespace +} diff --git a/pkg/serviceaccount/util_test.go b/staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util_test.go similarity index 100% rename from pkg/serviceaccount/util_test.go rename to staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util_test.go diff --git a/test/e2e/BUILD b/test/e2e/BUILD index 9f7cba5af35..e6715a81d67 100644 --- a/test/e2e/BUILD +++ b/test/e2e/BUILD @@ -158,7 +158,6 @@ go_library( "//pkg/quota/evaluator/core:go_default_library", "//pkg/registry/generic/registry:go_default_library", "//pkg/security/apparmor:go_default_library", - "//pkg/serviceaccount:go_default_library", "//pkg/util:go_default_library", "//pkg/util/exec:go_default_library", "//pkg/util/flowcontrol:go_default_library", @@ -208,6 +207,7 @@ go_library( "//vendor:k8s.io/apimachinery/pkg/util/wait", "//vendor:k8s.io/apimachinery/pkg/util/yaml", "//vendor:k8s.io/apimachinery/pkg/watch", + "//vendor:k8s.io/apiserver/pkg/authentication/serviceaccount", "//vendor:k8s.io/client-go/kubernetes", "//vendor:k8s.io/client-go/pkg/api/v1", "//vendor:k8s.io/client-go/pkg/apis/extensions/v1beta1", diff --git a/test/e2e/examples.go b/test/e2e/examples.go index bfbae704773..d7ef5e29232 100644 --- a/test/e2e/examples.go +++ b/test/e2e/examples.go @@ -31,10 +31,10 @@ import ( "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/util/wait" + "k8s.io/apiserver/pkg/authentication/serviceaccount" "k8s.io/kubernetes/pkg/api/v1" rbacv1alpha1 "k8s.io/kubernetes/pkg/apis/rbac/v1alpha1" "k8s.io/kubernetes/pkg/client/clientset_generated/clientset" - "k8s.io/kubernetes/pkg/serviceaccount" "k8s.io/kubernetes/test/e2e/framework" "k8s.io/kubernetes/test/e2e/generated" testutils "k8s.io/kubernetes/test/utils" diff --git a/test/e2e/ingress.go b/test/e2e/ingress.go index c2f47173612..1e16de204ce 100644 --- a/test/e2e/ingress.go +++ b/test/e2e/ingress.go @@ -22,8 +22,8 @@ import ( "time" "k8s.io/apimachinery/pkg/runtime/schema" + "k8s.io/apiserver/pkg/authentication/serviceaccount" rbacv1alpha1 "k8s.io/kubernetes/pkg/apis/rbac/v1alpha1" - "k8s.io/kubernetes/pkg/serviceaccount" "k8s.io/kubernetes/test/e2e/framework" . "github.com/onsi/ginkgo" diff --git a/test/e2e/kubectl.go b/test/e2e/kubectl.go index b243846414d..1c59db7bca4 100644 --- a/test/e2e/kubectl.go +++ b/test/e2e/kubectl.go @@ -48,6 +48,7 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" utilnet "k8s.io/apimachinery/pkg/util/net" "k8s.io/apimachinery/pkg/util/wait" + "k8s.io/apiserver/pkg/authentication/serviceaccount" "k8s.io/kubernetes/pkg/api/annotations" "k8s.io/kubernetes/pkg/api/resource" "k8s.io/kubernetes/pkg/api/v1" @@ -56,7 +57,6 @@ import ( "k8s.io/kubernetes/pkg/controller" "k8s.io/kubernetes/pkg/kubectl/cmd/util" genericregistry "k8s.io/kubernetes/pkg/registry/generic/registry" - "k8s.io/kubernetes/pkg/serviceaccount" uexec "k8s.io/kubernetes/pkg/util/exec" "k8s.io/kubernetes/pkg/util/uuid" utilversion "k8s.io/kubernetes/pkg/util/version" diff --git a/test/e2e/node_problem_detector.go b/test/e2e/node_problem_detector.go index 279d8d9728c..c34ff3b9315 100644 --- a/test/e2e/node_problem_detector.go +++ b/test/e2e/node_problem_detector.go @@ -25,13 +25,13 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/runtime/schema" + "k8s.io/apiserver/pkg/authentication/serviceaccount" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/v1" rbacv1alpha1 "k8s.io/kubernetes/pkg/apis/rbac/v1alpha1" "k8s.io/kubernetes/pkg/client/clientset_generated/clientset" coreclientset "k8s.io/kubernetes/pkg/client/clientset_generated/clientset/typed/core/v1" "k8s.io/kubernetes/pkg/fields" - "k8s.io/kubernetes/pkg/serviceaccount" "k8s.io/kubernetes/pkg/util/system" "k8s.io/kubernetes/pkg/util/uuid" "k8s.io/kubernetes/test/e2e/framework" diff --git a/test/e2e/pre_stop.go b/test/e2e/pre_stop.go index 7cebfdec47a..63d5b5cd4b2 100644 --- a/test/e2e/pre_stop.go +++ b/test/e2e/pre_stop.go @@ -25,10 +25,10 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/util/wait" + "k8s.io/apiserver/pkg/authentication/serviceaccount" "k8s.io/kubernetes/pkg/api/v1" rbacv1alpha1 "k8s.io/kubernetes/pkg/apis/rbac/v1alpha1" "k8s.io/kubernetes/pkg/client/clientset_generated/clientset" - "k8s.io/kubernetes/pkg/serviceaccount" "k8s.io/kubernetes/test/e2e/framework" . "github.com/onsi/ginkgo" diff --git a/test/integration/auth/auth_test.go b/test/integration/auth/auth_test.go index 889cd82db20..d6b08635af3 100644 --- a/test/integration/auth/auth_test.go +++ b/test/integration/auth/auth_test.go @@ -39,6 +39,7 @@ import ( "k8s.io/apiserver/pkg/authentication/authenticator" "k8s.io/apiserver/pkg/authentication/group" "k8s.io/apiserver/pkg/authentication/request/bearertoken" + "k8s.io/apiserver/pkg/authentication/serviceaccount" "k8s.io/apiserver/pkg/authentication/user" "k8s.io/apiserver/pkg/authorization/authorizer" "k8s.io/kubernetes/pkg/api" @@ -49,7 +50,6 @@ import ( "k8s.io/kubernetes/pkg/auth/authorizer/abac" "k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1" apiserverauthorizer "k8s.io/kubernetes/pkg/genericapiserver/authorizer" - "k8s.io/kubernetes/pkg/serviceaccount" "k8s.io/kubernetes/plugin/pkg/admission/admit" "k8s.io/kubernetes/plugin/pkg/auth/authenticator/token/tokentest" "k8s.io/kubernetes/plugin/pkg/auth/authenticator/token/webhook" diff --git a/test/integration/serviceaccount/service_account_test.go b/test/integration/serviceaccount/service_account_test.go index 57df013337b..71080090b35 100644 --- a/test/integration/serviceaccount/service_account_test.go +++ b/test/integration/serviceaccount/service_account_test.go @@ -38,6 +38,7 @@ import ( "k8s.io/apiserver/pkg/authentication/authenticator" "k8s.io/apiserver/pkg/authentication/request/bearertoken" "k8s.io/apiserver/pkg/authentication/request/union" + serviceaccountapiserver "k8s.io/apiserver/pkg/authentication/serviceaccount" "k8s.io/apiserver/pkg/authentication/user" "k8s.io/apiserver/pkg/authorization/authorizer" "k8s.io/kubernetes/pkg/api" @@ -385,7 +386,7 @@ func startServiceAccountTestServer(t *testing.T) (*clientset.Clientset, restclie } // If the user is a service account... - if serviceAccountNamespace, serviceAccountName, err := serviceaccount.SplitUsername(username); err == nil { + if serviceAccountNamespace, serviceAccountName, err := serviceaccountapiserver.SplitUsername(username); err == nil { // Limit them to their own namespace if serviceAccountNamespace == ns { switch serviceAccountName { diff --git a/vendor/BUILD b/vendor/BUILD index 6e23388b186..aeba276c4df 100644 --- a/vendor/BUILD +++ b/vendor/BUILD @@ -10,19 +10,6 @@ load( "go_test", ) -filegroup( - name = "package-srcs", - srcs = glob(["**"]), - tags = ["automanaged"], - visibility = ["//visibility:private"], -) - -filegroup( - name = "all-srcs", - srcs = [":package-srcs"], - tags = ["automanaged"], -) - go_library( name = "bitbucket.org/bertimus9/systemstat", srcs = [ @@ -815,6 +802,64 @@ go_library( tags = ["automanaged"], ) +go_library( + name = "github.com/chai2010/gettext-go/gettext", + srcs = [ + "github.com/chai2010/gettext-go/gettext/caller.go", + "github.com/chai2010/gettext-go/gettext/doc.go", + "github.com/chai2010/gettext-go/gettext/domain.go", + "github.com/chai2010/gettext-go/gettext/domain_helper.go", + "github.com/chai2010/gettext-go/gettext/fs.go", + "github.com/chai2010/gettext-go/gettext/gettext.go", + "github.com/chai2010/gettext-go/gettext/local.go", + "github.com/chai2010/gettext-go/gettext/tr.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/chai2010/gettext-go/gettext/mo", + "//vendor:github.com/chai2010/gettext-go/gettext/plural", + "//vendor:github.com/chai2010/gettext-go/gettext/po", + ], +) + +go_library( + name = "github.com/chai2010/gettext-go/gettext/mo", + srcs = [ + "github.com/chai2010/gettext-go/gettext/mo/doc.go", + "github.com/chai2010/gettext-go/gettext/mo/encoder.go", + "github.com/chai2010/gettext-go/gettext/mo/file.go", + "github.com/chai2010/gettext-go/gettext/mo/header.go", + "github.com/chai2010/gettext-go/gettext/mo/message.go", + "github.com/chai2010/gettext-go/gettext/mo/util.go", + ], + tags = ["automanaged"], +) + +go_library( + name = "github.com/chai2010/gettext-go/gettext/plural", + srcs = [ + "github.com/chai2010/gettext-go/gettext/plural/doc.go", + "github.com/chai2010/gettext-go/gettext/plural/formula.go", + "github.com/chai2010/gettext-go/gettext/plural/table.go", + ], + tags = ["automanaged"], +) + +go_library( + name = "github.com/chai2010/gettext-go/gettext/po", + srcs = [ + "github.com/chai2010/gettext-go/gettext/po/comment.go", + "github.com/chai2010/gettext-go/gettext/po/doc.go", + "github.com/chai2010/gettext-go/gettext/po/file.go", + "github.com/chai2010/gettext-go/gettext/po/header.go", + "github.com/chai2010/gettext-go/gettext/po/line_reader.go", + "github.com/chai2010/gettext-go/gettext/po/message.go", + "github.com/chai2010/gettext-go/gettext/po/re.go", + "github.com/chai2010/gettext-go/gettext/po/util.go", + ], + tags = ["automanaged"], +) + go_library( name = "github.com/cloudflare/cfssl/auth", srcs = ["github.com/cloudflare/cfssl/auth/auth.go"], @@ -4261,6 +4306,17 @@ go_binary( tags = ["automanaged"], ) +go_library( + name = "github.com/jteeuwen/go-bindata/go-bindata", + srcs = [ + "github.com/jteeuwen/go-bindata/go-bindata/AppendSliceValue.go", + "github.com/jteeuwen/go-bindata/go-bindata/main.go", + "github.com/jteeuwen/go-bindata/go-bindata/version.go", + ], + tags = ["automanaged"], + deps = ["//vendor:github.com/jteeuwen/go-bindata"], +) + go_library( name = "github.com/juju/ratelimit", srcs = [ @@ -4567,6 +4623,37 @@ go_binary( tags = ["automanaged"], ) +go_library( + name = "github.com/onsi/ginkgo/ginkgo", + srcs = [ + "github.com/onsi/ginkgo/ginkgo/bootstrap_command.go", + "github.com/onsi/ginkgo/ginkgo/build_command.go", + "github.com/onsi/ginkgo/ginkgo/convert_command.go", + "github.com/onsi/ginkgo/ginkgo/generate_command.go", + "github.com/onsi/ginkgo/ginkgo/help_command.go", + "github.com/onsi/ginkgo/ginkgo/main.go", + "github.com/onsi/ginkgo/ginkgo/nodot_command.go", + "github.com/onsi/ginkgo/ginkgo/notifications.go", + "github.com/onsi/ginkgo/ginkgo/run_command.go", + "github.com/onsi/ginkgo/ginkgo/run_watch_and_build_command_flags.go", + "github.com/onsi/ginkgo/ginkgo/suite_runner.go", + "github.com/onsi/ginkgo/ginkgo/unfocus_command.go", + "github.com/onsi/ginkgo/ginkgo/version_command.go", + "github.com/onsi/ginkgo/ginkgo/watch_command.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/onsi/ginkgo/config", + "//vendor:github.com/onsi/ginkgo/ginkgo/convert", + "//vendor:github.com/onsi/ginkgo/ginkgo/interrupthandler", + "//vendor:github.com/onsi/ginkgo/ginkgo/nodot", + "//vendor:github.com/onsi/ginkgo/ginkgo/testrunner", + "//vendor:github.com/onsi/ginkgo/ginkgo/testsuite", + "//vendor:github.com/onsi/ginkgo/ginkgo/watch", + "//vendor:github.com/onsi/ginkgo/types", + ], +) + go_library( name = "github.com/onsi/ginkgo/ginkgo/convert", srcs = [ @@ -6318,6 +6405,15 @@ go_binary( tags = ["automanaged"], ) +go_library( + name = "github.com/ugorji/go/codec/codecgen", + srcs = [ + "github.com/ugorji/go/codec/codecgen/gen.go", + "github.com/ugorji/go/codec/codecgen/z.go", + ], + tags = ["automanaged"], +) + go_library( name = "github.com/vishvananda/netlink", srcs = [ @@ -6808,6 +6904,22 @@ go_library( tags = ["automanaged"], ) +go_library( + name = "golang.org/x/crypto/ed25519", + srcs = ["golang.org/x/crypto/ed25519/ed25519.go"], + tags = ["automanaged"], + deps = ["//vendor:golang.org/x/crypto/ed25519/internal/edwards25519"], +) + +go_library( + name = "golang.org/x/crypto/ed25519/internal/edwards25519", + srcs = [ + "golang.org/x/crypto/ed25519/internal/edwards25519/const.go", + "golang.org/x/crypto/ed25519/internal/edwards25519/edwards25519.go", + ], + tags = ["automanaged"], +) + go_library( name = "golang.org/x/crypto/pkcs12", srcs = [ @@ -7121,12 +7233,65 @@ go_library( ], ) +go_library( + name = "golang.org/x/text/encoding", + srcs = ["golang.org/x/text/encoding/encoding.go"], + tags = ["automanaged"], + deps = [ + "//vendor:golang.org/x/text/encoding/internal/identifier", + "//vendor:golang.org/x/text/transform", + ], +) + +go_library( + name = "golang.org/x/text/encoding/internal", + srcs = ["golang.org/x/text/encoding/internal/internal.go"], + tags = ["automanaged"], + deps = [ + "//vendor:golang.org/x/text/encoding", + "//vendor:golang.org/x/text/encoding/internal/identifier", + "//vendor:golang.org/x/text/transform", + ], +) + +go_library( + name = "golang.org/x/text/encoding/internal/identifier", + srcs = [ + "golang.org/x/text/encoding/internal/identifier/identifier.go", + "golang.org/x/text/encoding/internal/identifier/mib.go", + ], + tags = ["automanaged"], +) + +go_library( + name = "golang.org/x/text/encoding/unicode", + srcs = [ + "golang.org/x/text/encoding/unicode/override.go", + "golang.org/x/text/encoding/unicode/unicode.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:golang.org/x/text/encoding", + "//vendor:golang.org/x/text/encoding/internal", + "//vendor:golang.org/x/text/encoding/internal/identifier", + "//vendor:golang.org/x/text/internal/utf8internal", + "//vendor:golang.org/x/text/runes", + "//vendor:golang.org/x/text/transform", + ], +) + go_library( name = "golang.org/x/text/internal/tag", srcs = ["golang.org/x/text/internal/tag/tag.go"], tags = ["automanaged"], ) +go_library( + name = "golang.org/x/text/internal/utf8internal", + srcs = ["golang.org/x/text/internal/utf8internal/utf8internal.go"], + tags = ["automanaged"], +) + go_library( name = "golang.org/x/text/language", srcs = [ @@ -7609,6 +7774,1246 @@ go_library( tags = ["automanaged"], ) +go_test( + name = "k8s.io/apimachinery/pkg/api/errors_test", + srcs = ["k8s.io/apimachinery/pkg/api/errors/errors_test.go"], + library = ":k8s.io/apimachinery/pkg/api/errors", + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/validation/field", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/api/errors", + srcs = [ + "k8s.io/apimachinery/pkg/api/errors/doc.go", + "k8s.io/apimachinery/pkg/api/errors/errors.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/validation/field", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/api/meta_test", + srcs = [ + "k8s.io/apimachinery/pkg/api/meta/multirestmapper_test.go", + "k8s.io/apimachinery/pkg/api/meta/priority_test.go", + "k8s.io/apimachinery/pkg/api/meta/restmapper_test.go", + ], + library = ":k8s.io/apimachinery/pkg/api/meta", + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/api/meta", + srcs = [ + "k8s.io/apimachinery/pkg/api/meta/doc.go", + "k8s.io/apimachinery/pkg/api/meta/errors.go", + "k8s.io/apimachinery/pkg/api/meta/firsthit_restmapper.go", + "k8s.io/apimachinery/pkg/api/meta/help.go", + "k8s.io/apimachinery/pkg/api/meta/interfaces.go", + "k8s.io/apimachinery/pkg/api/meta/meta.go", + "k8s.io/apimachinery/pkg/api/meta/multirestmapper.go", + "k8s.io/apimachinery/pkg/api/meta/priority.go", + "k8s.io/apimachinery/pkg/api/meta/restmapper.go", + "k8s.io/apimachinery/pkg/api/meta/unstructured.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", + "//vendor:k8s.io/apimachinery/pkg/conversion", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/types", + "//vendor:k8s.io/apimachinery/pkg/util/errors", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/apimachinery_test", + srcs = ["k8s.io/apimachinery/pkg/apimachinery/types_test.go"], + library = ":k8s.io/apimachinery/pkg/apimachinery", + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apimachinery/pkg/runtime/schema"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/apimachinery", + srcs = [ + "k8s.io/apimachinery/pkg/apimachinery/doc.go", + "k8s.io/apimachinery/pkg/apimachinery/types.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/api/meta", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/apimachinery/registered_test", + srcs = ["k8s.io/apimachinery/pkg/apimachinery/registered/registered_test.go"], + library = ":k8s.io/apimachinery/pkg/apimachinery/registered", + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/apimachinery", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/apimachinery/registered", + srcs = ["k8s.io/apimachinery/pkg/apimachinery/registered/registered.go"], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:k8s.io/apimachinery/pkg/api/meta", + "//vendor:k8s.io/apimachinery/pkg/apimachinery", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/apis/meta/v1_test", + srcs = [ + "k8s.io/apimachinery/pkg/apis/meta/v1/duration_test.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/group_version_test.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/helpers_test.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/types_test.go", + ], + library = ":k8s.io/apimachinery/pkg/apis/meta/v1", + tags = ["automanaged"], + deps = [ + "//vendor:github.com/ghodss/yaml", + "//vendor:github.com/ugorji/go/codec", + "//vendor:k8s.io/apimachinery/pkg/labels", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/apis/meta/v1", + srcs = [ + "k8s.io/apimachinery/pkg/apis/meta/v1/doc.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/duration.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/generated.pb.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/helpers.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/meta.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/register.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/time.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/types.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/types_swagger_doc_generated.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/watch.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/well_known_labels.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go", + "k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.defaults.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/go-openapi/spec", + "//vendor:github.com/gogo/protobuf/proto", + "//vendor:github.com/gogo/protobuf/sortkeys", + "//vendor:github.com/google/gofuzz", + "//vendor:k8s.io/apimachinery/pkg/conversion", + "//vendor:k8s.io/apimachinery/pkg/labels", + "//vendor:k8s.io/apimachinery/pkg/openapi", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/selection", + "//vendor:k8s.io/apimachinery/pkg/types", + "//vendor:k8s.io/apimachinery/pkg/watch", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", + srcs = ["k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go"], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/types", + "//vendor:k8s.io/apimachinery/pkg/util/json", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/apis/meta/v1/validation_test", + srcs = ["k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation_test.go"], + library = ":k8s.io/apimachinery/pkg/apis/meta/v1/validation", + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apimachinery/pkg/util/validation/field"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/apis/meta/v1/validation", + srcs = ["k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", + "//vendor:k8s.io/apimachinery/pkg/util/validation", + "//vendor:k8s.io/apimachinery/pkg/util/validation/field", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/conversion_test", + srcs = [ + "k8s.io/apimachinery/pkg/conversion/converter_test.go", + "k8s.io/apimachinery/pkg/conversion/deep_copy_test.go", + "k8s.io/apimachinery/pkg/conversion/helper_test.go", + ], + library = ":k8s.io/apimachinery/pkg/conversion", + tags = ["automanaged"], + deps = [ + "//vendor:github.com/google/gofuzz", + "//vendor:github.com/spf13/pflag", + "//vendor:k8s.io/apimachinery/pkg/util/diff", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/conversion", + srcs = [ + "k8s.io/apimachinery/pkg/conversion/cloner.go", + "k8s.io/apimachinery/pkg/conversion/converter.go", + "k8s.io/apimachinery/pkg/conversion/deep_equal.go", + "k8s.io/apimachinery/pkg/conversion/doc.go", + "k8s.io/apimachinery/pkg/conversion/helper.go", + ], + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apimachinery/third_party/forked/golang/reflect"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/conversion/queryparams", + srcs = [ + "k8s.io/apimachinery/pkg/conversion/queryparams/convert.go", + "k8s.io/apimachinery/pkg/conversion/queryparams/doc.go", + ], + tags = ["automanaged"], +) + +go_test( + name = "k8s.io/apimachinery/pkg/conversion/queryparams_xtest", + srcs = ["k8s.io/apimachinery/pkg/conversion/queryparams/convert_test.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", + "//vendor:k8s.io/apimachinery/pkg/conversion/queryparams", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/labels_test", + srcs = [ + "k8s.io/apimachinery/pkg/labels/labels_test.go", + "k8s.io/apimachinery/pkg/labels/selector_test.go", + ], + library = ":k8s.io/apimachinery/pkg/labels", + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/selection", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/labels", + srcs = [ + "k8s.io/apimachinery/pkg/labels/doc.go", + "k8s.io/apimachinery/pkg/labels/labels.go", + "k8s.io/apimachinery/pkg/labels/selector.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:k8s.io/apimachinery/pkg/selection", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + "//vendor:k8s.io/apimachinery/pkg/util/validation", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/openapi", + srcs = [ + "k8s.io/apimachinery/pkg/openapi/common.go", + "k8s.io/apimachinery/pkg/openapi/doc.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/emicklei/go-restful", + "//vendor:github.com/go-openapi/spec", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/runtime_test", + srcs = ["k8s.io/apimachinery/pkg/runtime/swagger_doc_generator_test.go"], + library = ":k8s.io/apimachinery/pkg/runtime", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/runtime", + srcs = [ + "k8s.io/apimachinery/pkg/runtime/codec.go", + "k8s.io/apimachinery/pkg/runtime/codec_check.go", + "k8s.io/apimachinery/pkg/runtime/conversion.go", + "k8s.io/apimachinery/pkg/runtime/doc.go", + "k8s.io/apimachinery/pkg/runtime/embedded.go", + "k8s.io/apimachinery/pkg/runtime/error.go", + "k8s.io/apimachinery/pkg/runtime/extension.go", + "k8s.io/apimachinery/pkg/runtime/generated.pb.go", + "k8s.io/apimachinery/pkg/runtime/helper.go", + "k8s.io/apimachinery/pkg/runtime/interfaces.go", + "k8s.io/apimachinery/pkg/runtime/register.go", + "k8s.io/apimachinery/pkg/runtime/scheme.go", + "k8s.io/apimachinery/pkg/runtime/scheme_builder.go", + "k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go", + "k8s.io/apimachinery/pkg/runtime/types.go", + "k8s.io/apimachinery/pkg/runtime/types_proto.go", + "k8s.io/apimachinery/pkg/runtime/zz_generated.deepcopy.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/gogo/protobuf/proto", + "//vendor:k8s.io/apimachinery/pkg/conversion", + "//vendor:k8s.io/apimachinery/pkg/conversion/queryparams", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/errors", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/runtime_xtest", + srcs = [ + "k8s.io/apimachinery/pkg/runtime/conversion_test.go", + "k8s.io/apimachinery/pkg/runtime/embedded_test.go", + "k8s.io/apimachinery/pkg/runtime/extension_test.go", + "k8s.io/apimachinery/pkg/runtime/scheme_test.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/google/gofuzz", + "//vendor:github.com/spf13/pflag", + "//vendor:k8s.io/apimachinery/pkg/api/meta", + "//vendor:k8s.io/apimachinery/pkg/conversion", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer", + "//vendor:k8s.io/apimachinery/pkg/util/diff", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/runtime/schema_test", + srcs = ["k8s.io/apimachinery/pkg/runtime/schema/group_version_test.go"], + library = ":k8s.io/apimachinery/pkg/runtime/schema", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/runtime/schema", + srcs = [ + "k8s.io/apimachinery/pkg/runtime/schema/generated.pb.go", + "k8s.io/apimachinery/pkg/runtime/schema/group_version.go", + "k8s.io/apimachinery/pkg/runtime/schema/interfaces.go", + ], + tags = ["automanaged"], + deps = ["//vendor:github.com/gogo/protobuf/proto"], +) + +go_test( + name = "k8s.io/apimachinery/pkg/runtime/serializer_test", + srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/codec_test.go"], + library = ":k8s.io/apimachinery/pkg/runtime/serializer", + tags = ["automanaged"], + deps = [ + "//vendor:github.com/ghodss/yaml", + "//vendor:github.com/google/gofuzz", + "//vendor:github.com/spf13/pflag", + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", + "//vendor:k8s.io/apimachinery/pkg/conversion", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/diff", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/runtime/serializer", + srcs = [ + "k8s.io/apimachinery/pkg/runtime/serializer/codec_factory.go", + "k8s.io/apimachinery/pkg/runtime/serializer/negotiated_codec.go", + "k8s.io/apimachinery/pkg/runtime/serializer/protobuf_extension.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/json", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/protobuf", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/versioning", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/runtime/serializer/json_test", + srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/json/meta_test.go"], + library = ":k8s.io/apimachinery/pkg/runtime/serializer/json", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/runtime/serializer/json", + srcs = [ + "k8s.io/apimachinery/pkg/runtime/serializer/json/json.go", + "k8s.io/apimachinery/pkg/runtime/serializer/json/meta.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/ghodss/yaml", + "//vendor:github.com/ugorji/go/codec", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", + "//vendor:k8s.io/apimachinery/pkg/util/framer", + "//vendor:k8s.io/apimachinery/pkg/util/yaml", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/runtime/serializer/json_xtest", + srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/json/json_test.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/json", + "//vendor:k8s.io/apimachinery/pkg/util/diff", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/runtime/serializer/protobuf", + srcs = [ + "k8s.io/apimachinery/pkg/runtime/serializer/protobuf/doc.go", + "k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/gogo/protobuf/proto", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", + "//vendor:k8s.io/apimachinery/pkg/util/framer", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/runtime/serializer/recognizer", + srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/recognizer/recognizer.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/runtime/serializer/recognizer/testing_test", + srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/recognizer/testing/recognizer_test.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/json", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/runtime/serializer/streaming_test", + srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/streaming/streaming_test.go"], + library = ":k8s.io/apimachinery/pkg/runtime/serializer/streaming", + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/framer", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/runtime/serializer/streaming", + srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/streaming/streaming.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/runtime/serializer/versioning_test", + srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_test.go"], + library = ":k8s.io/apimachinery/pkg/runtime/serializer/versioning", + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/diff", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/runtime/serializer/versioning", + srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/runtime", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/runtime/serializer/yaml", + srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/yaml/yaml.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/yaml", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/selection", + srcs = ["k8s.io/apimachinery/pkg/selection/operator.go"], + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/types", + srcs = [ + "k8s.io/apimachinery/pkg/types/doc.go", + "k8s.io/apimachinery/pkg/types/namespacedname.go", + "k8s.io/apimachinery/pkg/types/nodename.go", + "k8s.io/apimachinery/pkg/types/uid.go", + "k8s.io/apimachinery/pkg/types/unix_user_id.go", + ], + tags = ["automanaged"], +) + +go_test( + name = "k8s.io/apimachinery/pkg/util/diff_test", + srcs = ["k8s.io/apimachinery/pkg/util/diff/diff_test.go"], + library = ":k8s.io/apimachinery/pkg/util/diff", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/util/diff", + srcs = ["k8s.io/apimachinery/pkg/util/diff/diff.go"], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/davecgh/go-spew/spew", + "//vendor:k8s.io/apimachinery/pkg/util/validation/field", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/util/errors_test", + srcs = ["k8s.io/apimachinery/pkg/util/errors/errors_test.go"], + library = ":k8s.io/apimachinery/pkg/util/errors", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/util/errors", + srcs = [ + "k8s.io/apimachinery/pkg/util/errors/doc.go", + "k8s.io/apimachinery/pkg/util/errors/errors.go", + ], + tags = ["automanaged"], +) + +go_test( + name = "k8s.io/apimachinery/pkg/util/framer_test", + srcs = ["k8s.io/apimachinery/pkg/util/framer/framer_test.go"], + library = ":k8s.io/apimachinery/pkg/util/framer", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/util/framer", + srcs = ["k8s.io/apimachinery/pkg/util/framer/framer.go"], + tags = ["automanaged"], +) + +go_test( + name = "k8s.io/apimachinery/pkg/util/json_test", + srcs = ["k8s.io/apimachinery/pkg/util/json/json_test.go"], + library = ":k8s.io/apimachinery/pkg/util/json", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/util/json", + srcs = ["k8s.io/apimachinery/pkg/util/json/json.go"], + tags = ["automanaged"], +) + +go_test( + name = "k8s.io/apimachinery/pkg/util/net_test", + srcs = [ + "k8s.io/apimachinery/pkg/util/net/http_test.go", + "k8s.io/apimachinery/pkg/util/net/interface_test.go", + "k8s.io/apimachinery/pkg/util/net/port_range_test.go", + "k8s.io/apimachinery/pkg/util/net/port_split_test.go", + "k8s.io/apimachinery/pkg/util/net/util_test.go", + ], + library = ":k8s.io/apimachinery/pkg/util/net", + tags = ["automanaged"], + deps = [ + "//vendor:github.com/spf13/pflag", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/util/net", + srcs = [ + "k8s.io/apimachinery/pkg/util/net/http.go", + "k8s.io/apimachinery/pkg/util/net/interface.go", + "k8s.io/apimachinery/pkg/util/net/port_range.go", + "k8s.io/apimachinery/pkg/util/net/port_split.go", + "k8s.io/apimachinery/pkg/util/net/util.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:golang.org/x/net/http2", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/util/rand_test", + srcs = ["k8s.io/apimachinery/pkg/util/rand/rand_test.go"], + library = ":k8s.io/apimachinery/pkg/util/rand", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/util/rand", + srcs = ["k8s.io/apimachinery/pkg/util/rand/rand.go"], + tags = ["automanaged"], +) + +go_test( + name = "k8s.io/apimachinery/pkg/util/runtime_test", + srcs = ["k8s.io/apimachinery/pkg/util/runtime/runtime_test.go"], + library = ":k8s.io/apimachinery/pkg/util/runtime", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/util/runtime", + srcs = ["k8s.io/apimachinery/pkg/util/runtime/runtime.go"], + tags = ["automanaged"], + deps = ["//vendor:github.com/golang/glog"], +) + +go_test( + name = "k8s.io/apimachinery/pkg/util/sets_test", + srcs = ["k8s.io/apimachinery/pkg/util/sets/set_test.go"], + library = ":k8s.io/apimachinery/pkg/util/sets", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/util/sets", + srcs = [ + "k8s.io/apimachinery/pkg/util/sets/byte.go", + "k8s.io/apimachinery/pkg/util/sets/doc.go", + "k8s.io/apimachinery/pkg/util/sets/empty.go", + "k8s.io/apimachinery/pkg/util/sets/int.go", + "k8s.io/apimachinery/pkg/util/sets/int64.go", + "k8s.io/apimachinery/pkg/util/sets/string.go", + ], + tags = ["automanaged"], +) + +go_test( + name = "k8s.io/apimachinery/pkg/util/validation_test", + srcs = ["k8s.io/apimachinery/pkg/util/validation/validation_test.go"], + library = ":k8s.io/apimachinery/pkg/util/validation", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/util/validation", + srcs = ["k8s.io/apimachinery/pkg/util/validation/validation.go"], + tags = ["automanaged"], +) + +go_test( + name = "k8s.io/apimachinery/pkg/util/validation/field_test", + srcs = [ + "k8s.io/apimachinery/pkg/util/validation/field/errors_test.go", + "k8s.io/apimachinery/pkg/util/validation/field/path_test.go", + ], + library = ":k8s.io/apimachinery/pkg/util/validation/field", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/util/validation/field", + srcs = [ + "k8s.io/apimachinery/pkg/util/validation/field/errors.go", + "k8s.io/apimachinery/pkg/util/validation/field/path.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/util/errors", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/util/wait_test", + srcs = ["k8s.io/apimachinery/pkg/util/wait/wait_test.go"], + library = ":k8s.io/apimachinery/pkg/util/wait", + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apimachinery/pkg/util/runtime"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/util/wait", + srcs = [ + "k8s.io/apimachinery/pkg/util/wait/doc.go", + "k8s.io/apimachinery/pkg/util/wait/wait.go", + ], + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apimachinery/pkg/util/runtime"], +) + +go_test( + name = "k8s.io/apimachinery/pkg/util/yaml_test", + srcs = ["k8s.io/apimachinery/pkg/util/yaml/decoder_test.go"], + library = ":k8s.io/apimachinery/pkg/util/yaml", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/pkg/util/yaml", + srcs = ["k8s.io/apimachinery/pkg/util/yaml/decoder.go"], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/ghodss/yaml", + "//vendor:github.com/golang/glog", + ], +) + +go_library( + name = "k8s.io/apimachinery/pkg/watch", + srcs = [ + "k8s.io/apimachinery/pkg/watch/doc.go", + "k8s.io/apimachinery/pkg/watch/filter.go", + "k8s.io/apimachinery/pkg/watch/mux.go", + "k8s.io/apimachinery/pkg/watch/streamwatcher.go", + "k8s.io/apimachinery/pkg/watch/until.go", + "k8s.io/apimachinery/pkg/watch/watch.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/net", + "//vendor:k8s.io/apimachinery/pkg/util/runtime", + "//vendor:k8s.io/apimachinery/pkg/util/wait", + ], +) + +go_test( + name = "k8s.io/apimachinery/pkg/watch_xtest", + srcs = [ + "k8s.io/apimachinery/pkg/watch/filter_test.go", + "k8s.io/apimachinery/pkg/watch/mux_test.go", + "k8s.io/apimachinery/pkg/watch/streamwatcher_test.go", + "k8s.io/apimachinery/pkg/watch/watch_test.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/wait", + "//vendor:k8s.io/apimachinery/pkg/watch", + ], +) + +go_test( + name = "k8s.io/apimachinery/third_party/forked/golang/reflect_test", + srcs = ["k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal_test.go"], + library = ":k8s.io/apimachinery/third_party/forked/golang/reflect", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apimachinery/third_party/forked/golang/reflect", + srcs = [ + "k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go", + "k8s.io/apimachinery/third_party/forked/golang/reflect/type.go", + ], + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apiserver/pkg/authentication/authenticator", + srcs = ["k8s.io/apiserver/pkg/authentication/authenticator/interfaces.go"], + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"], +) + +go_test( + name = "k8s.io/apiserver/pkg/authentication/group_test", + srcs = ["k8s.io/apiserver/pkg/authentication/group/group_adder_test.go"], + library = ":k8s.io/apiserver/pkg/authentication/group", + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", + "//vendor:k8s.io/apiserver/pkg/authentication/user", + ], +) + +go_library( + name = "k8s.io/apiserver/pkg/authentication/group", + srcs = ["k8s.io/apiserver/pkg/authentication/group/group_adder.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", + "//vendor:k8s.io/apiserver/pkg/authentication/user", + ], +) + +go_test( + name = "k8s.io/apiserver/pkg/authentication/request/anonymous_test", + srcs = ["k8s.io/apiserver/pkg/authentication/request/anonymous/anonymous_test.go"], + library = ":k8s.io/apiserver/pkg/authentication/request/anonymous", + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/util/sets", + "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", + "//vendor:k8s.io/apiserver/pkg/authentication/user", + ], +) + +go_library( + name = "k8s.io/apiserver/pkg/authentication/request/anonymous", + srcs = ["k8s.io/apiserver/pkg/authentication/request/anonymous/anonymous.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", + "//vendor:k8s.io/apiserver/pkg/authentication/user", + ], +) + +go_test( + name = "k8s.io/apiserver/pkg/authentication/request/bearertoken_test", + srcs = ["k8s.io/apiserver/pkg/authentication/request/bearertoken/bearertoken_test.go"], + library = ":k8s.io/apiserver/pkg/authentication/request/bearertoken", + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", + "//vendor:k8s.io/apiserver/pkg/authentication/user", + ], +) + +go_library( + name = "k8s.io/apiserver/pkg/authentication/request/bearertoken", + srcs = ["k8s.io/apiserver/pkg/authentication/request/bearertoken/bearertoken.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", + "//vendor:k8s.io/apiserver/pkg/authentication/user", + ], +) + +go_test( + name = "k8s.io/apiserver/pkg/authentication/request/headerrequest_test", + srcs = ["k8s.io/apiserver/pkg/authentication/request/headerrequest/requestheader_test.go"], + library = ":k8s.io/apiserver/pkg/authentication/request/headerrequest", + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"], +) + +go_library( + name = "k8s.io/apiserver/pkg/authentication/request/headerrequest", + srcs = ["k8s.io/apiserver/pkg/authentication/request/headerrequest/requestheader.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/util/sets", + "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", + "//vendor:k8s.io/apiserver/pkg/authentication/request/x509", + "//vendor:k8s.io/apiserver/pkg/authentication/user", + "//vendor:k8s.io/client-go/pkg/util/cert", + ], +) + +go_test( + name = "k8s.io/apiserver/pkg/authentication/request/union_test", + srcs = ["k8s.io/apiserver/pkg/authentication/request/union/unionauth_test.go"], + library = ":k8s.io/apiserver/pkg/authentication/request/union", + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"], +) + +go_library( + name = "k8s.io/apiserver/pkg/authentication/request/union", + srcs = ["k8s.io/apiserver/pkg/authentication/request/union/union.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/util/errors", + "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", + "//vendor:k8s.io/apiserver/pkg/authentication/user", + ], +) + +go_test( + name = "k8s.io/apiserver/pkg/authentication/request/x509_test", + srcs = ["k8s.io/apiserver/pkg/authentication/request/x509/x509_test.go"], + library = ":k8s.io/apiserver/pkg/authentication/request/x509", + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/util/sets", + "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", + "//vendor:k8s.io/apiserver/pkg/authentication/user", + ], +) + +go_library( + name = "k8s.io/apiserver/pkg/authentication/request/x509", + srcs = [ + "k8s.io/apiserver/pkg/authentication/request/x509/doc.go", + "k8s.io/apiserver/pkg/authentication/request/x509/x509.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:k8s.io/apimachinery/pkg/util/errors", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", + "//vendor:k8s.io/apiserver/pkg/authentication/user", + ], +) + +go_test( + name = "k8s.io/apiserver/pkg/authentication/serviceaccount_test", + srcs = ["k8s.io/apiserver/pkg/authentication/serviceaccount/util_test.go"], + library = ":k8s.io/apiserver/pkg/authentication/serviceaccount", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apiserver/pkg/authentication/serviceaccount", + srcs = ["k8s.io/apiserver/pkg/authentication/serviceaccount/util.go"], + tags = ["automanaged"], + deps = ["//pkg/api/validation/genericvalidation:go_default_library"], +) + +go_test( + name = "k8s.io/apiserver/pkg/authentication/token/tokenfile_test", + srcs = ["k8s.io/apiserver/pkg/authentication/token/tokenfile/tokenfile_test.go"], + library = ":k8s.io/apiserver/pkg/authentication/token/tokenfile", + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"], +) + +go_library( + name = "k8s.io/apiserver/pkg/authentication/token/tokenfile", + srcs = ["k8s.io/apiserver/pkg/authentication/token/tokenfile/tokenfile.go"], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:k8s.io/apiserver/pkg/authentication/user", + ], +) + +go_library( + name = "k8s.io/apiserver/pkg/authentication/user", + srcs = [ + "k8s.io/apiserver/pkg/authentication/user/doc.go", + "k8s.io/apiserver/pkg/authentication/user/user.go", + ], + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apiserver/pkg/authorization/authorizer", + srcs = ["k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go"], + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"], +) + +go_test( + name = "k8s.io/apiserver/pkg/authorization/union_test", + srcs = ["k8s.io/apiserver/pkg/authorization/union/union_test.go"], + library = ":k8s.io/apiserver/pkg/authorization/union", + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apiserver/pkg/authorization/authorizer"], +) + +go_library( + name = "k8s.io/apiserver/pkg/authorization/union", + srcs = ["k8s.io/apiserver/pkg/authorization/union/union.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/util/errors", + "//vendor:k8s.io/apiserver/pkg/authorization/authorizer", + ], +) + +go_test( + name = "k8s.io/apiserver/pkg/handlers/negotiation_test", + srcs = ["k8s.io/apiserver/pkg/handlers/negotiation/negotiate_test.go"], + library = ":k8s.io/apiserver/pkg/handlers/negotiation", + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", + "//vendor:k8s.io/apimachinery/pkg/runtime", + ], +) + +go_library( + name = "k8s.io/apiserver/pkg/handlers/negotiation", + srcs = [ + "k8s.io/apiserver/pkg/handlers/negotiation/doc.go", + "k8s.io/apiserver/pkg/handlers/negotiation/errors.go", + "k8s.io/apiserver/pkg/handlers/negotiation/negotiate.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:bitbucket.org/ww/goautoneg", + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + ], +) + +go_test( + name = "k8s.io/apiserver/pkg/healthz_test", + srcs = ["k8s.io/apiserver/pkg/healthz/healthz_test.go"], + library = ":k8s.io/apiserver/pkg/healthz", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apiserver/pkg/healthz", + srcs = [ + "k8s.io/apiserver/pkg/healthz/doc.go", + "k8s.io/apiserver/pkg/healthz/healthz.go", + ], + tags = ["automanaged"], +) + +go_test( + name = "k8s.io/apiserver/pkg/httplog_test", + srcs = ["k8s.io/apiserver/pkg/httplog/log_test.go"], + library = ":k8s.io/apiserver/pkg/httplog", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apiserver/pkg/httplog", + srcs = [ + "k8s.io/apiserver/pkg/httplog/doc.go", + "k8s.io/apiserver/pkg/httplog/log.go", + ], + tags = ["automanaged"], + deps = ["//vendor:github.com/golang/glog"], +) + +go_library( + name = "k8s.io/apiserver/pkg/metrics", + srcs = ["k8s.io/apiserver/pkg/metrics/metrics.go"], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/emicklei/go-restful", + "//vendor:github.com/prometheus/client_golang/prometheus", + "//vendor:k8s.io/apimachinery/pkg/util/net", + ], +) + +go_test( + name = "k8s.io/apiserver/pkg/request_test", + srcs = ["k8s.io/apiserver/pkg/request/requestinfo_test.go"], + library = ":k8s.io/apiserver/pkg/request", + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apimachinery/pkg/util/sets"], +) + +go_library( + name = "k8s.io/apiserver/pkg/request", + srcs = [ + "k8s.io/apiserver/pkg/request/context.go", + "k8s.io/apiserver/pkg/request/doc.go", + "k8s.io/apiserver/pkg/request/requestcontext.go", + "k8s.io/apiserver/pkg/request/requestinfo.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:golang.org/x/net/context", + "//vendor:k8s.io/apimachinery/pkg/types", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + "//vendor:k8s.io/apiserver/pkg/authentication/user", + ], +) + +go_test( + name = "k8s.io/apiserver/pkg/request_xtest", + srcs = ["k8s.io/apiserver/pkg/request/context_test.go"], + tags = ["automanaged"], + deps = [ + "//pkg/api:go_default_library", + "//vendor:k8s.io/apimachinery/pkg/types", + "//vendor:k8s.io/apiserver/pkg/authentication/user", + "//vendor:k8s.io/apiserver/pkg/request", + ], +) + +go_library( + name = "k8s.io/apiserver/pkg/storage/etcd/metrics", + srcs = ["k8s.io/apiserver/pkg/storage/etcd/metrics/metrics.go"], + tags = ["automanaged"], + deps = ["//vendor:github.com/prometheus/client_golang/prometheus"], +) + +go_test( + name = "k8s.io/apiserver/pkg/storage/names_test", + srcs = ["k8s.io/apiserver/pkg/storage/names/generate_test.go"], + library = ":k8s.io/apiserver/pkg/storage/names", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apiserver/pkg/storage/names", + srcs = ["k8s.io/apiserver/pkg/storage/names/generate.go"], + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apimachinery/pkg/util/rand"], +) + +go_test( + name = "k8s.io/apiserver/pkg/util/cache_test", + srcs = [ + "k8s.io/apiserver/pkg/util/cache/cache_test.go", + "k8s.io/apiserver/pkg/util/cache/lruexpirecache_test.go", + ], + library = ":k8s.io/apiserver/pkg/util/cache", + tags = ["automanaged"], + deps = [ + "//pkg/util/clock:go_default_library", + "//vendor:github.com/golang/groupcache/lru", + ], +) + +go_library( + name = "k8s.io/apiserver/pkg/util/cache", + srcs = [ + "k8s.io/apiserver/pkg/util/cache/cache.go", + "k8s.io/apiserver/pkg/util/cache/lruexpirecache.go", + ], + tags = ["automanaged"], + deps = ["//vendor:github.com/golang/groupcache/lru"], +) + +go_test( + name = "k8s.io/apiserver/pkg/util/flushwriter_test", + srcs = ["k8s.io/apiserver/pkg/util/flushwriter/writer_test.go"], + library = ":k8s.io/apiserver/pkg/util/flushwriter", + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/apiserver/pkg/util/flushwriter", + srcs = [ + "k8s.io/apiserver/pkg/util/flushwriter/doc.go", + "k8s.io/apiserver/pkg/util/flushwriter/writer.go", + ], + tags = ["automanaged"], +) + +go_test( + name = "k8s.io/apiserver/pkg/util/wsstream_test", + srcs = [ + "k8s.io/apiserver/pkg/util/wsstream/conn_test.go", + "k8s.io/apiserver/pkg/util/wsstream/stream_test.go", + ], + library = ":k8s.io/apiserver/pkg/util/wsstream", + tags = ["automanaged"], + deps = ["//vendor:golang.org/x/net/websocket"], +) + +go_library( + name = "k8s.io/apiserver/pkg/util/wsstream", + srcs = [ + "k8s.io/apiserver/pkg/util/wsstream/conn.go", + "k8s.io/apiserver/pkg/util/wsstream/doc.go", + "k8s.io/apiserver/pkg/util/wsstream/stream.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:golang.org/x/net/websocket", + "//vendor:k8s.io/apimachinery/pkg/util/runtime", + ], +) + +go_library( + name = "k8s.io/apiserver/pkg/webhook", + srcs = ["k8s.io/apiserver/pkg/webhook/webhook.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer", + "//vendor:k8s.io/apimachinery/pkg/util/wait", + "//vendor:k8s.io/client-go/pkg/api", + "//vendor:k8s.io/client-go/pkg/api/errors", + "//vendor:k8s.io/client-go/pkg/apis/authorization/install", + "//vendor:k8s.io/client-go/rest", + "//vendor:k8s.io/client-go/tools/clientcmd", + ], +) + go_library( name = "k8s.io/client-go/_vendor/cloud.google.com/go/compute/metadata", srcs = ["k8s.io/client-go/_vendor/cloud.google.com/go/compute/metadata/metadata.go"], @@ -8575,6 +9980,442 @@ go_library( tags = ["automanaged"], ) +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/doc.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/errors.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/firsthit_restmapper.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/help.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/interfaces.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/meta.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/multirestmapper.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/priority.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/restmapper.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/unstructured.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", + "//vendor:k8s.io/apimachinery/pkg/conversion", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/types", + "//vendor:k8s.io/apimachinery/pkg/util/errors", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apimachinery", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apimachinery/doc.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apimachinery/types.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/api/meta", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apimachinery/registered", + srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apimachinery/registered/registered.go"], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:k8s.io/apimachinery/pkg/api/meta", + "//vendor:k8s.io/apimachinery/pkg/apimachinery", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/doc.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/duration.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/generated.pb.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/helpers.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/meta.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/register.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/types.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/types_swagger_doc_generated.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/watch.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/well_known_labels.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.defaults.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/go-openapi/spec", + "//vendor:github.com/gogo/protobuf/proto", + "//vendor:github.com/gogo/protobuf/sortkeys", + "//vendor:github.com/google/gofuzz", + "//vendor:k8s.io/apimachinery/pkg/conversion", + "//vendor:k8s.io/apimachinery/pkg/labels", + "//vendor:k8s.io/apimachinery/pkg/openapi", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/selection", + "//vendor:k8s.io/apimachinery/pkg/types", + "//vendor:k8s.io/apimachinery/pkg/watch", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", + srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go"], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/types", + "//vendor:k8s.io/apimachinery/pkg/util/json", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/cloner.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/converter.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/deep_equal.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/doc.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/helper.go", + ], + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apimachinery/third_party/forked/golang/reflect"], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/queryparams", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/queryparams/convert.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/queryparams/doc.go", + ], + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/genericapiserver/openapi/common", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/genericapiserver/openapi/common/common.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/genericapiserver/openapi/common/doc.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/emicklei/go-restful", + "//vendor:github.com/go-openapi/spec", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/labels", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/labels/doc.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/labels/labels.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/labels/selector.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:k8s.io/apimachinery/pkg/selection", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + "//vendor:k8s.io/apimachinery/pkg/util/validation", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/codec.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/codec_check.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/conversion.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/doc.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/embedded.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/error.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/extension.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/generated.pb.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/helper.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/interfaces.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/register.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/scheme.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/scheme_builder.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/types.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/types_proto.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/zz_generated.deepcopy.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/gogo/protobuf/proto", + "//vendor:k8s.io/apimachinery/pkg/conversion", + "//vendor:k8s.io/apimachinery/pkg/conversion/queryparams", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/errors", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/schema", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/schema/generated.pb.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/schema/group_version.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/schema/interfaces.go", + ], + tags = ["automanaged"], + deps = ["//vendor:github.com/gogo/protobuf/proto"], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/codec_factory.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/negotiated_codec.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/protobuf_extension.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/json", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/protobuf", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/versioning", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/json", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/json/meta.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/ghodss/yaml", + "//vendor:github.com/ugorji/go/codec", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", + "//vendor:k8s.io/apimachinery/pkg/util/framer", + "//vendor:k8s.io/apimachinery/pkg/util/yaml", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/protobuf", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/doc.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/gogo/protobuf/proto", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", + "//vendor:k8s.io/apimachinery/pkg/util/framer", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/recognizer", + srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/recognizer/recognizer.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/streaming", + srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/streaming/streaming.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/versioning", + srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go"], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/runtime", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/selection", + srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/selection/operator.go"], + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/types", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/types/doc.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/types/namespacedname.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/types/nodename.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/types/uid.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/types/unix_user_id.go", + ], + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/diff", + srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/diff/diff.go"], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/davecgh/go-spew/spew", + "//vendor:k8s.io/apimachinery/pkg/util/validation/field", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/errors", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/errors/doc.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/errors/errors.go", + ], + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/framer", + srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/framer/framer.go"], + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/json", + srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/json/json.go"], + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/net", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/net/http.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/net/interface.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/net/port_range.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/net/port_split.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/net/util.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:golang.org/x/net/http2", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/runtime", + srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go"], + tags = ["automanaged"], + deps = ["//vendor:github.com/golang/glog"], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets/byte.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets/doc.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets/empty.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets/int.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets/int64.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets/string.go", + ], + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/validation", + srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/validation/validation.go"], + tags = ["automanaged"], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/validation/field", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/validation/field/errors.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/validation/field/path.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/util/errors", + "//vendor:k8s.io/apimachinery/pkg/util/sets", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/wait", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/wait/doc.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/wait/wait.go", + ], + tags = ["automanaged"], + deps = ["//vendor:k8s.io/apimachinery/pkg/util/runtime"], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/yaml", + srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/yaml/decoder.go"], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/ghodss/yaml", + "//vendor:github.com/golang/glog", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch/doc.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch/filter.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch/mux.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch/streamwatcher.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch/until.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch/watch.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/golang/glog", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/schema", + "//vendor:k8s.io/apimachinery/pkg/util/net", + "//vendor:k8s.io/apimachinery/pkg/util/runtime", + "//vendor:k8s.io/apimachinery/pkg/util/wait", + ], +) + +go_library( + name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/third_party/forked/golang/reflect", + srcs = [ + "k8s.io/client-go/_vendor/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go", + "k8s.io/client-go/_vendor/k8s.io/apimachinery/third_party/forked/golang/reflect/type.go", + ], + tags = ["automanaged"], +) + go_test( name = "k8s.io/client-go/discovery_test", srcs = [ @@ -10772,6 +12613,50 @@ go_library( tags = ["automanaged"], ) +go_test( + name = "k8s.io/client-go/pkg/util/workqueue_test", + srcs = [ + "k8s.io/client-go/pkg/util/workqueue/default_rate_limiters_test.go", + "k8s.io/client-go/pkg/util/workqueue/delaying_queue_test.go", + "k8s.io/client-go/pkg/util/workqueue/rate_limitting_queue_test.go", + "k8s.io/client-go/pkg/util/workqueue/timed_queue_test.go", + ], + library = ":k8s.io/client-go/pkg/util/workqueue", + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/util/wait", + "//vendor:k8s.io/client-go/pkg/api/v1", + "//vendor:k8s.io/client-go/pkg/util/clock", + ], +) + +go_library( + name = "k8s.io/client-go/pkg/util/workqueue", + srcs = [ + "k8s.io/client-go/pkg/util/workqueue/default_rate_limiters.go", + "k8s.io/client-go/pkg/util/workqueue/delaying_queue.go", + "k8s.io/client-go/pkg/util/workqueue/doc.go", + "k8s.io/client-go/pkg/util/workqueue/metrics.go", + "k8s.io/client-go/pkg/util/workqueue/parallelizer.go", + "k8s.io/client-go/pkg/util/workqueue/queue.go", + "k8s.io/client-go/pkg/util/workqueue/rate_limitting_queue.go", + "k8s.io/client-go/pkg/util/workqueue/timed_queue.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:github.com/juju/ratelimit", + "//vendor:k8s.io/apimachinery/pkg/util/runtime", + "//vendor:k8s.io/client-go/pkg/util/clock", + ], +) + +go_test( + name = "k8s.io/client-go/pkg/util/workqueue_xtest", + srcs = ["k8s.io/client-go/pkg/util/workqueue/queue_test.go"], + tags = ["automanaged"], + deps = ["//vendor:k8s.io/client-go/pkg/util/workqueue"], +) + go_library( name = "k8s.io/client-go/pkg/version", srcs = [ @@ -10939,6 +12824,40 @@ go_library( ], ) +go_library( + name = "k8s.io/client-go/rest/watch", + srcs = [ + "k8s.io/client-go/rest/watch/decoder.go", + "k8s.io/client-go/rest/watch/encoder.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/streaming", + "//vendor:k8s.io/apimachinery/pkg/watch", + ], +) + +go_test( + name = "k8s.io/client-go/rest/watch_xtest", + srcs = [ + "k8s.io/client-go/rest/watch/decoder_test.go", + "k8s.io/client-go/rest/watch/encoder_test.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", + "//vendor:k8s.io/apimachinery/pkg/runtime", + "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/streaming", + "//vendor:k8s.io/apimachinery/pkg/util/wait", + "//vendor:k8s.io/apimachinery/pkg/watch", + "//vendor:k8s.io/client-go/pkg/api", + "//vendor:k8s.io/client-go/pkg/api/testapi", + "//vendor:k8s.io/client-go/rest/watch", + ], +) + go_library( name = "k8s.io/client-go/testing", srcs = [ @@ -11451,1920 +13370,15 @@ go_library( ], ) -go_test( - name = "k8s.io/client-go/pkg/util/workqueue_test", - srcs = [ - "k8s.io/client-go/pkg/util/workqueue/default_rate_limiters_test.go", - "k8s.io/client-go/pkg/util/workqueue/delaying_queue_test.go", - "k8s.io/client-go/pkg/util/workqueue/rate_limitting_queue_test.go", - "k8s.io/client-go/pkg/util/workqueue/timed_queue_test.go", - ], - library = ":k8s.io/client-go/pkg/util/workqueue", +filegroup( + name = "package-srcs", + srcs = glob(["**"]), tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/util/wait", - "//vendor:k8s.io/client-go/pkg/api/v1", - "//vendor:k8s.io/client-go/pkg/util/clock", - ], + visibility = ["//visibility:private"], ) -go_library( - name = "k8s.io/client-go/pkg/util/workqueue", - srcs = [ - "k8s.io/client-go/pkg/util/workqueue/default_rate_limiters.go", - "k8s.io/client-go/pkg/util/workqueue/delaying_queue.go", - "k8s.io/client-go/pkg/util/workqueue/doc.go", - "k8s.io/client-go/pkg/util/workqueue/metrics.go", - "k8s.io/client-go/pkg/util/workqueue/parallelizer.go", - "k8s.io/client-go/pkg/util/workqueue/queue.go", - "k8s.io/client-go/pkg/util/workqueue/rate_limitting_queue.go", - "k8s.io/client-go/pkg/util/workqueue/timed_queue.go", - ], +filegroup( + name = "all-srcs", + srcs = [":package-srcs"], tags = ["automanaged"], - deps = [ - "//vendor:github.com/juju/ratelimit", - "//vendor:k8s.io/apimachinery/pkg/util/runtime", - "//vendor:k8s.io/client-go/pkg/util/clock", - ], -) - -go_test( - name = "k8s.io/client-go/pkg/util/workqueue_xtest", - srcs = ["k8s.io/client-go/pkg/util/workqueue/queue_test.go"], - tags = ["automanaged"], - deps = ["//vendor:k8s.io/client-go/pkg/util/workqueue"], -) - -go_library( - name = "github.com/chai2010/gettext-go/gettext", - srcs = [ - "github.com/chai2010/gettext-go/gettext/caller.go", - "github.com/chai2010/gettext-go/gettext/doc.go", - "github.com/chai2010/gettext-go/gettext/domain.go", - "github.com/chai2010/gettext-go/gettext/domain_helper.go", - "github.com/chai2010/gettext-go/gettext/fs.go", - "github.com/chai2010/gettext-go/gettext/gettext.go", - "github.com/chai2010/gettext-go/gettext/local.go", - "github.com/chai2010/gettext-go/gettext/tr.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/chai2010/gettext-go/gettext/mo", - "//vendor:github.com/chai2010/gettext-go/gettext/plural", - "//vendor:github.com/chai2010/gettext-go/gettext/po", - ], -) - -go_library( - name = "github.com/chai2010/gettext-go/gettext/mo", - srcs = [ - "github.com/chai2010/gettext-go/gettext/mo/doc.go", - "github.com/chai2010/gettext-go/gettext/mo/encoder.go", - "github.com/chai2010/gettext-go/gettext/mo/file.go", - "github.com/chai2010/gettext-go/gettext/mo/header.go", - "github.com/chai2010/gettext-go/gettext/mo/message.go", - "github.com/chai2010/gettext-go/gettext/mo/util.go", - ], - tags = ["automanaged"], -) - -go_library( - name = "github.com/chai2010/gettext-go/gettext/plural", - srcs = [ - "github.com/chai2010/gettext-go/gettext/plural/doc.go", - "github.com/chai2010/gettext-go/gettext/plural/formula.go", - "github.com/chai2010/gettext-go/gettext/plural/table.go", - ], - tags = ["automanaged"], -) - -go_library( - name = "github.com/chai2010/gettext-go/gettext/po", - srcs = [ - "github.com/chai2010/gettext-go/gettext/po/comment.go", - "github.com/chai2010/gettext-go/gettext/po/doc.go", - "github.com/chai2010/gettext-go/gettext/po/file.go", - "github.com/chai2010/gettext-go/gettext/po/header.go", - "github.com/chai2010/gettext-go/gettext/po/line_reader.go", - "github.com/chai2010/gettext-go/gettext/po/message.go", - "github.com/chai2010/gettext-go/gettext/po/re.go", - "github.com/chai2010/gettext-go/gettext/po/util.go", - ], - tags = ["automanaged"], -) - -go_library( - name = "github.com/jteeuwen/go-bindata/go-bindata", - srcs = [ - "github.com/jteeuwen/go-bindata/go-bindata/AppendSliceValue.go", - "github.com/jteeuwen/go-bindata/go-bindata/main.go", - "github.com/jteeuwen/go-bindata/go-bindata/version.go", - ], - tags = ["automanaged"], - deps = ["//vendor:github.com/jteeuwen/go-bindata"], -) - -go_library( - name = "github.com/onsi/ginkgo/ginkgo", - srcs = [ - "github.com/onsi/ginkgo/ginkgo/bootstrap_command.go", - "github.com/onsi/ginkgo/ginkgo/build_command.go", - "github.com/onsi/ginkgo/ginkgo/convert_command.go", - "github.com/onsi/ginkgo/ginkgo/generate_command.go", - "github.com/onsi/ginkgo/ginkgo/help_command.go", - "github.com/onsi/ginkgo/ginkgo/main.go", - "github.com/onsi/ginkgo/ginkgo/nodot_command.go", - "github.com/onsi/ginkgo/ginkgo/notifications.go", - "github.com/onsi/ginkgo/ginkgo/run_command.go", - "github.com/onsi/ginkgo/ginkgo/run_watch_and_build_command_flags.go", - "github.com/onsi/ginkgo/ginkgo/suite_runner.go", - "github.com/onsi/ginkgo/ginkgo/unfocus_command.go", - "github.com/onsi/ginkgo/ginkgo/version_command.go", - "github.com/onsi/ginkgo/ginkgo/watch_command.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/onsi/ginkgo/config", - "//vendor:github.com/onsi/ginkgo/ginkgo/convert", - "//vendor:github.com/onsi/ginkgo/ginkgo/interrupthandler", - "//vendor:github.com/onsi/ginkgo/ginkgo/nodot", - "//vendor:github.com/onsi/ginkgo/ginkgo/testrunner", - "//vendor:github.com/onsi/ginkgo/ginkgo/testsuite", - "//vendor:github.com/onsi/ginkgo/ginkgo/watch", - "//vendor:github.com/onsi/ginkgo/types", - ], -) - -go_library( - name = "github.com/ugorji/go/codec/codecgen", - srcs = [ - "github.com/ugorji/go/codec/codecgen/gen.go", - "github.com/ugorji/go/codec/codecgen/z.go", - ], - tags = ["automanaged"], -) - -go_library( - name = "golang.org/x/crypto/ed25519", - srcs = ["golang.org/x/crypto/ed25519/ed25519.go"], - tags = ["automanaged"], - deps = ["//vendor:golang.org/x/crypto/ed25519/internal/edwards25519"], -) - -go_library( - name = "golang.org/x/crypto/ed25519/internal/edwards25519", - srcs = [ - "golang.org/x/crypto/ed25519/internal/edwards25519/const.go", - "golang.org/x/crypto/ed25519/internal/edwards25519/edwards25519.go", - ], - tags = ["automanaged"], -) - -go_library( - name = "golang.org/x/text/encoding", - srcs = ["golang.org/x/text/encoding/encoding.go"], - tags = ["automanaged"], - deps = [ - "//vendor:golang.org/x/text/encoding/internal/identifier", - "//vendor:golang.org/x/text/transform", - ], -) - -go_library( - name = "golang.org/x/text/encoding/internal", - srcs = ["golang.org/x/text/encoding/internal/internal.go"], - tags = ["automanaged"], - deps = [ - "//vendor:golang.org/x/text/encoding", - "//vendor:golang.org/x/text/encoding/internal/identifier", - "//vendor:golang.org/x/text/transform", - ], -) - -go_library( - name = "golang.org/x/text/encoding/internal/identifier", - srcs = [ - "golang.org/x/text/encoding/internal/identifier/identifier.go", - "golang.org/x/text/encoding/internal/identifier/mib.go", - ], - tags = ["automanaged"], -) - -go_library( - name = "golang.org/x/text/encoding/unicode", - srcs = [ - "golang.org/x/text/encoding/unicode/override.go", - "golang.org/x/text/encoding/unicode/unicode.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:golang.org/x/text/encoding", - "//vendor:golang.org/x/text/encoding/internal", - "//vendor:golang.org/x/text/encoding/internal/identifier", - "//vendor:golang.org/x/text/internal/utf8internal", - "//vendor:golang.org/x/text/runes", - "//vendor:golang.org/x/text/transform", - ], -) - -go_library( - name = "golang.org/x/text/internal/utf8internal", - srcs = ["golang.org/x/text/internal/utf8internal/utf8internal.go"], - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apiserver/pkg/authentication/user", - srcs = [ - "k8s.io/apiserver/pkg/authentication/user/doc.go", - "k8s.io/apiserver/pkg/authentication/user/user.go", - ], - tags = ["automanaged"], -) - -go_test( - name = "k8s.io/apiserver/pkg/healthz_test", - srcs = ["k8s.io/apiserver/pkg/healthz/healthz_test.go"], - library = ":k8s.io/apiserver/pkg/healthz", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apiserver/pkg/healthz", - srcs = [ - "k8s.io/apiserver/pkg/healthz/doc.go", - "k8s.io/apiserver/pkg/healthz/healthz.go", - ], - tags = ["automanaged"], -) - -go_test( - name = "k8s.io/apiserver/pkg/util/flushwriter_test", - srcs = ["k8s.io/apiserver/pkg/util/flushwriter/writer_test.go"], - library = ":k8s.io/apiserver/pkg/util/flushwriter", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apiserver/pkg/util/flushwriter", - srcs = [ - "k8s.io/apiserver/pkg/util/flushwriter/doc.go", - "k8s.io/apiserver/pkg/util/flushwriter/writer.go", - ], - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apiserver/pkg/authentication/authenticator", - srcs = ["k8s.io/apiserver/pkg/authentication/authenticator/interfaces.go"], - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"], -) - -go_library( - name = "k8s.io/apiserver/pkg/authorization/authorizer", - srcs = ["k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go"], - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"], -) - -go_test( - name = "k8s.io/apimachinery/pkg/api/meta_test", - srcs = [ - "k8s.io/apimachinery/pkg/api/meta/multirestmapper_test.go", - "k8s.io/apimachinery/pkg/api/meta/priority_test.go", - "k8s.io/apimachinery/pkg/api/meta/restmapper_test.go", - ], - library = ":k8s.io/apimachinery/pkg/api/meta", - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/api/meta", - srcs = [ - "k8s.io/apimachinery/pkg/api/meta/doc.go", - "k8s.io/apimachinery/pkg/api/meta/errors.go", - "k8s.io/apimachinery/pkg/api/meta/firsthit_restmapper.go", - "k8s.io/apimachinery/pkg/api/meta/help.go", - "k8s.io/apimachinery/pkg/api/meta/interfaces.go", - "k8s.io/apimachinery/pkg/api/meta/meta.go", - "k8s.io/apimachinery/pkg/api/meta/multirestmapper.go", - "k8s.io/apimachinery/pkg/api/meta/priority.go", - "k8s.io/apimachinery/pkg/api/meta/restmapper.go", - "k8s.io/apimachinery/pkg/api/meta/unstructured.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", - "//vendor:k8s.io/apimachinery/pkg/conversion", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/types", - "//vendor:k8s.io/apimachinery/pkg/util/errors", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/apimachinery_test", - srcs = ["k8s.io/apimachinery/pkg/apimachinery/types_test.go"], - library = ":k8s.io/apimachinery/pkg/apimachinery", - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apimachinery/pkg/runtime/schema"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/apimachinery", - srcs = [ - "k8s.io/apimachinery/pkg/apimachinery/doc.go", - "k8s.io/apimachinery/pkg/apimachinery/types.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/api/meta", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/apimachinery/registered_test", - srcs = ["k8s.io/apimachinery/pkg/apimachinery/registered/registered_test.go"], - library = ":k8s.io/apimachinery/pkg/apimachinery/registered", - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/apimachinery", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/apimachinery/registered", - srcs = ["k8s.io/apimachinery/pkg/apimachinery/registered/registered.go"], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:k8s.io/apimachinery/pkg/api/meta", - "//vendor:k8s.io/apimachinery/pkg/apimachinery", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/apis/meta/v1_test", - srcs = [ - "k8s.io/apimachinery/pkg/apis/meta/v1/duration_test.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/group_version_test.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/helpers_test.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/types_test.go", - ], - library = ":k8s.io/apimachinery/pkg/apis/meta/v1", - tags = ["automanaged"], - deps = [ - "//vendor:github.com/ghodss/yaml", - "//vendor:github.com/ugorji/go/codec", - "//vendor:k8s.io/apimachinery/pkg/labels", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/apis/meta/v1", - srcs = [ - "k8s.io/apimachinery/pkg/apis/meta/v1/doc.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/duration.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/generated.pb.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/helpers.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/meta.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/register.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/time.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/types.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/types_swagger_doc_generated.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/watch.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/well_known_labels.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go", - "k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.defaults.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/go-openapi/spec", - "//vendor:github.com/gogo/protobuf/proto", - "//vendor:github.com/gogo/protobuf/sortkeys", - "//vendor:github.com/google/gofuzz", - "//vendor:k8s.io/apimachinery/pkg/conversion", - "//vendor:k8s.io/apimachinery/pkg/labels", - "//vendor:k8s.io/apimachinery/pkg/openapi", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/selection", - "//vendor:k8s.io/apimachinery/pkg/types", - "//vendor:k8s.io/apimachinery/pkg/watch", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", - srcs = ["k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go"], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/types", - "//vendor:k8s.io/apimachinery/pkg/util/json", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/conversion_test", - srcs = [ - "k8s.io/apimachinery/pkg/conversion/converter_test.go", - "k8s.io/apimachinery/pkg/conversion/deep_copy_test.go", - "k8s.io/apimachinery/pkg/conversion/helper_test.go", - ], - library = ":k8s.io/apimachinery/pkg/conversion", - tags = ["automanaged"], - deps = [ - "//vendor:github.com/google/gofuzz", - "//vendor:github.com/spf13/pflag", - "//vendor:k8s.io/apimachinery/pkg/util/diff", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/conversion", - srcs = [ - "k8s.io/apimachinery/pkg/conversion/cloner.go", - "k8s.io/apimachinery/pkg/conversion/converter.go", - "k8s.io/apimachinery/pkg/conversion/deep_equal.go", - "k8s.io/apimachinery/pkg/conversion/doc.go", - "k8s.io/apimachinery/pkg/conversion/helper.go", - ], - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apimachinery/third_party/forked/golang/reflect"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/conversion/queryparams", - srcs = [ - "k8s.io/apimachinery/pkg/conversion/queryparams/convert.go", - "k8s.io/apimachinery/pkg/conversion/queryparams/doc.go", - ], - tags = ["automanaged"], -) - -go_test( - name = "k8s.io/apimachinery/pkg/conversion/queryparams_xtest", - srcs = ["k8s.io/apimachinery/pkg/conversion/queryparams/convert_test.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", - "//vendor:k8s.io/apimachinery/pkg/conversion/queryparams", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/labels_test", - srcs = [ - "k8s.io/apimachinery/pkg/labels/labels_test.go", - "k8s.io/apimachinery/pkg/labels/selector_test.go", - ], - library = ":k8s.io/apimachinery/pkg/labels", - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/selection", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/labels", - srcs = [ - "k8s.io/apimachinery/pkg/labels/doc.go", - "k8s.io/apimachinery/pkg/labels/labels.go", - "k8s.io/apimachinery/pkg/labels/selector.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:k8s.io/apimachinery/pkg/selection", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - "//vendor:k8s.io/apimachinery/pkg/util/validation", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/runtime_test", - srcs = ["k8s.io/apimachinery/pkg/runtime/swagger_doc_generator_test.go"], - library = ":k8s.io/apimachinery/pkg/runtime", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/runtime", - srcs = [ - "k8s.io/apimachinery/pkg/runtime/codec.go", - "k8s.io/apimachinery/pkg/runtime/codec_check.go", - "k8s.io/apimachinery/pkg/runtime/conversion.go", - "k8s.io/apimachinery/pkg/runtime/doc.go", - "k8s.io/apimachinery/pkg/runtime/embedded.go", - "k8s.io/apimachinery/pkg/runtime/error.go", - "k8s.io/apimachinery/pkg/runtime/extension.go", - "k8s.io/apimachinery/pkg/runtime/generated.pb.go", - "k8s.io/apimachinery/pkg/runtime/helper.go", - "k8s.io/apimachinery/pkg/runtime/interfaces.go", - "k8s.io/apimachinery/pkg/runtime/register.go", - "k8s.io/apimachinery/pkg/runtime/scheme.go", - "k8s.io/apimachinery/pkg/runtime/scheme_builder.go", - "k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go", - "k8s.io/apimachinery/pkg/runtime/types.go", - "k8s.io/apimachinery/pkg/runtime/types_proto.go", - "k8s.io/apimachinery/pkg/runtime/zz_generated.deepcopy.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/gogo/protobuf/proto", - "//vendor:k8s.io/apimachinery/pkg/conversion", - "//vendor:k8s.io/apimachinery/pkg/conversion/queryparams", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/errors", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/runtime_xtest", - srcs = [ - "k8s.io/apimachinery/pkg/runtime/conversion_test.go", - "k8s.io/apimachinery/pkg/runtime/embedded_test.go", - "k8s.io/apimachinery/pkg/runtime/extension_test.go", - "k8s.io/apimachinery/pkg/runtime/scheme_test.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/google/gofuzz", - "//vendor:github.com/spf13/pflag", - "//vendor:k8s.io/apimachinery/pkg/api/meta", - "//vendor:k8s.io/apimachinery/pkg/conversion", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer", - "//vendor:k8s.io/apimachinery/pkg/util/diff", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/runtime/schema_test", - srcs = ["k8s.io/apimachinery/pkg/runtime/schema/group_version_test.go"], - library = ":k8s.io/apimachinery/pkg/runtime/schema", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/runtime/schema", - srcs = [ - "k8s.io/apimachinery/pkg/runtime/schema/generated.pb.go", - "k8s.io/apimachinery/pkg/runtime/schema/group_version.go", - "k8s.io/apimachinery/pkg/runtime/schema/interfaces.go", - ], - tags = ["automanaged"], - deps = ["//vendor:github.com/gogo/protobuf/proto"], -) - -go_test( - name = "k8s.io/apimachinery/pkg/runtime/serializer_test", - srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/codec_test.go"], - library = ":k8s.io/apimachinery/pkg/runtime/serializer", - tags = ["automanaged"], - deps = [ - "//vendor:github.com/ghodss/yaml", - "//vendor:github.com/google/gofuzz", - "//vendor:github.com/spf13/pflag", - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", - "//vendor:k8s.io/apimachinery/pkg/conversion", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/diff", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/runtime/serializer", - srcs = [ - "k8s.io/apimachinery/pkg/runtime/serializer/codec_factory.go", - "k8s.io/apimachinery/pkg/runtime/serializer/negotiated_codec.go", - "k8s.io/apimachinery/pkg/runtime/serializer/protobuf_extension.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/json", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/protobuf", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/versioning", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/runtime/serializer/json_test", - srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/json/meta_test.go"], - library = ":k8s.io/apimachinery/pkg/runtime/serializer/json", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/runtime/serializer/json", - srcs = [ - "k8s.io/apimachinery/pkg/runtime/serializer/json/json.go", - "k8s.io/apimachinery/pkg/runtime/serializer/json/meta.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/ghodss/yaml", - "//vendor:github.com/ugorji/go/codec", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", - "//vendor:k8s.io/apimachinery/pkg/util/framer", - "//vendor:k8s.io/apimachinery/pkg/util/yaml", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/runtime/serializer/json_xtest", - srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/json/json_test.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/json", - "//vendor:k8s.io/apimachinery/pkg/util/diff", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/runtime/serializer/protobuf", - srcs = [ - "k8s.io/apimachinery/pkg/runtime/serializer/protobuf/doc.go", - "k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/gogo/protobuf/proto", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", - "//vendor:k8s.io/apimachinery/pkg/util/framer", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/runtime/serializer/recognizer", - srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/recognizer/recognizer.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/runtime/serializer/recognizer/testing_test", - srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/recognizer/testing/recognizer_test.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/json", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/runtime/serializer/streaming_test", - srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/streaming/streaming_test.go"], - library = ":k8s.io/apimachinery/pkg/runtime/serializer/streaming", - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/framer", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/runtime/serializer/streaming", - srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/streaming/streaming.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/runtime/serializer/versioning_test", - srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_test.go"], - library = ":k8s.io/apimachinery/pkg/runtime/serializer/versioning", - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/diff", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/runtime/serializer/versioning", - srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/runtime", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/runtime/serializer/yaml", - srcs = ["k8s.io/apimachinery/pkg/runtime/serializer/yaml/yaml.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/yaml", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/selection", - srcs = ["k8s.io/apimachinery/pkg/selection/operator.go"], - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/types", - srcs = [ - "k8s.io/apimachinery/pkg/types/doc.go", - "k8s.io/apimachinery/pkg/types/namespacedname.go", - "k8s.io/apimachinery/pkg/types/nodename.go", - "k8s.io/apimachinery/pkg/types/uid.go", - "k8s.io/apimachinery/pkg/types/unix_user_id.go", - ], - tags = ["automanaged"], -) - -go_test( - name = "k8s.io/apimachinery/pkg/util/diff_test", - srcs = ["k8s.io/apimachinery/pkg/util/diff/diff_test.go"], - library = ":k8s.io/apimachinery/pkg/util/diff", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/util/diff", - srcs = ["k8s.io/apimachinery/pkg/util/diff/diff.go"], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/davecgh/go-spew/spew", - "//vendor:k8s.io/apimachinery/pkg/util/validation/field", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/util/errors_test", - srcs = ["k8s.io/apimachinery/pkg/util/errors/errors_test.go"], - library = ":k8s.io/apimachinery/pkg/util/errors", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/util/errors", - srcs = [ - "k8s.io/apimachinery/pkg/util/errors/doc.go", - "k8s.io/apimachinery/pkg/util/errors/errors.go", - ], - tags = ["automanaged"], -) - -go_test( - name = "k8s.io/apimachinery/pkg/util/framer_test", - srcs = ["k8s.io/apimachinery/pkg/util/framer/framer_test.go"], - library = ":k8s.io/apimachinery/pkg/util/framer", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/util/framer", - srcs = ["k8s.io/apimachinery/pkg/util/framer/framer.go"], - tags = ["automanaged"], -) - -go_test( - name = "k8s.io/apimachinery/pkg/util/json_test", - srcs = ["k8s.io/apimachinery/pkg/util/json/json_test.go"], - library = ":k8s.io/apimachinery/pkg/util/json", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/util/json", - srcs = ["k8s.io/apimachinery/pkg/util/json/json.go"], - tags = ["automanaged"], -) - -go_test( - name = "k8s.io/apimachinery/pkg/util/net_test", - srcs = [ - "k8s.io/apimachinery/pkg/util/net/http_test.go", - "k8s.io/apimachinery/pkg/util/net/interface_test.go", - "k8s.io/apimachinery/pkg/util/net/port_range_test.go", - "k8s.io/apimachinery/pkg/util/net/port_split_test.go", - "k8s.io/apimachinery/pkg/util/net/util_test.go", - ], - library = ":k8s.io/apimachinery/pkg/util/net", - tags = ["automanaged"], - deps = [ - "//vendor:github.com/spf13/pflag", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/util/net", - srcs = [ - "k8s.io/apimachinery/pkg/util/net/http.go", - "k8s.io/apimachinery/pkg/util/net/interface.go", - "k8s.io/apimachinery/pkg/util/net/port_range.go", - "k8s.io/apimachinery/pkg/util/net/port_split.go", - "k8s.io/apimachinery/pkg/util/net/util.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:golang.org/x/net/http2", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/util/runtime_test", - srcs = ["k8s.io/apimachinery/pkg/util/runtime/runtime_test.go"], - library = ":k8s.io/apimachinery/pkg/util/runtime", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/util/runtime", - srcs = ["k8s.io/apimachinery/pkg/util/runtime/runtime.go"], - tags = ["automanaged"], - deps = ["//vendor:github.com/golang/glog"], -) - -go_test( - name = "k8s.io/apimachinery/pkg/util/sets_test", - srcs = ["k8s.io/apimachinery/pkg/util/sets/set_test.go"], - library = ":k8s.io/apimachinery/pkg/util/sets", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/util/sets", - srcs = [ - "k8s.io/apimachinery/pkg/util/sets/byte.go", - "k8s.io/apimachinery/pkg/util/sets/doc.go", - "k8s.io/apimachinery/pkg/util/sets/empty.go", - "k8s.io/apimachinery/pkg/util/sets/int.go", - "k8s.io/apimachinery/pkg/util/sets/int64.go", - "k8s.io/apimachinery/pkg/util/sets/string.go", - ], - tags = ["automanaged"], -) - -go_test( - name = "k8s.io/apimachinery/pkg/util/validation_test", - srcs = ["k8s.io/apimachinery/pkg/util/validation/validation_test.go"], - library = ":k8s.io/apimachinery/pkg/util/validation", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/util/validation", - srcs = ["k8s.io/apimachinery/pkg/util/validation/validation.go"], - tags = ["automanaged"], -) - -go_test( - name = "k8s.io/apimachinery/pkg/util/validation/field_test", - srcs = [ - "k8s.io/apimachinery/pkg/util/validation/field/errors_test.go", - "k8s.io/apimachinery/pkg/util/validation/field/path_test.go", - ], - library = ":k8s.io/apimachinery/pkg/util/validation/field", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/util/validation/field", - srcs = [ - "k8s.io/apimachinery/pkg/util/validation/field/errors.go", - "k8s.io/apimachinery/pkg/util/validation/field/path.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/util/errors", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/util/wait_test", - srcs = ["k8s.io/apimachinery/pkg/util/wait/wait_test.go"], - library = ":k8s.io/apimachinery/pkg/util/wait", - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apimachinery/pkg/util/runtime"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/util/wait", - srcs = [ - "k8s.io/apimachinery/pkg/util/wait/doc.go", - "k8s.io/apimachinery/pkg/util/wait/wait.go", - ], - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apimachinery/pkg/util/runtime"], -) - -go_test( - name = "k8s.io/apimachinery/pkg/util/yaml_test", - srcs = ["k8s.io/apimachinery/pkg/util/yaml/decoder_test.go"], - library = ":k8s.io/apimachinery/pkg/util/yaml", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/util/yaml", - srcs = ["k8s.io/apimachinery/pkg/util/yaml/decoder.go"], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/ghodss/yaml", - "//vendor:github.com/golang/glog", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/watch", - srcs = [ - "k8s.io/apimachinery/pkg/watch/doc.go", - "k8s.io/apimachinery/pkg/watch/filter.go", - "k8s.io/apimachinery/pkg/watch/mux.go", - "k8s.io/apimachinery/pkg/watch/streamwatcher.go", - "k8s.io/apimachinery/pkg/watch/until.go", - "k8s.io/apimachinery/pkg/watch/watch.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/net", - "//vendor:k8s.io/apimachinery/pkg/util/runtime", - "//vendor:k8s.io/apimachinery/pkg/util/wait", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/watch_xtest", - srcs = [ - "k8s.io/apimachinery/pkg/watch/filter_test.go", - "k8s.io/apimachinery/pkg/watch/mux_test.go", - "k8s.io/apimachinery/pkg/watch/streamwatcher_test.go", - "k8s.io/apimachinery/pkg/watch/watch_test.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/wait", - "//vendor:k8s.io/apimachinery/pkg/watch", - ], -) - -go_test( - name = "k8s.io/apimachinery/third_party/forked/golang/reflect_test", - srcs = ["k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal_test.go"], - library = ":k8s.io/apimachinery/third_party/forked/golang/reflect", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/third_party/forked/golang/reflect", - srcs = [ - "k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go", - "k8s.io/apimachinery/third_party/forked/golang/reflect/type.go", - ], - tags = ["automanaged"], -) - -go_test( - name = "k8s.io/apiserver/pkg/authentication/group_test", - srcs = ["k8s.io/apiserver/pkg/authentication/group/group_adder_test.go"], - library = ":k8s.io/apiserver/pkg/authentication/group", - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", - "//vendor:k8s.io/apiserver/pkg/authentication/user", - ], -) - -go_library( - name = "k8s.io/apiserver/pkg/authentication/group", - srcs = ["k8s.io/apiserver/pkg/authentication/group/group_adder.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", - "//vendor:k8s.io/apiserver/pkg/authentication/user", - ], -) - -go_test( - name = "k8s.io/apiserver/pkg/authentication/request/anonymous_test", - srcs = ["k8s.io/apiserver/pkg/authentication/request/anonymous/anonymous_test.go"], - library = ":k8s.io/apiserver/pkg/authentication/request/anonymous", - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/util/sets", - "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", - "//vendor:k8s.io/apiserver/pkg/authentication/user", - ], -) - -go_library( - name = "k8s.io/apiserver/pkg/authentication/request/anonymous", - srcs = ["k8s.io/apiserver/pkg/authentication/request/anonymous/anonymous.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", - "//vendor:k8s.io/apiserver/pkg/authentication/user", - ], -) - -go_test( - name = "k8s.io/apiserver/pkg/authentication/request/bearertoken_test", - srcs = ["k8s.io/apiserver/pkg/authentication/request/bearertoken/bearertoken_test.go"], - library = ":k8s.io/apiserver/pkg/authentication/request/bearertoken", - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", - "//vendor:k8s.io/apiserver/pkg/authentication/user", - ], -) - -go_library( - name = "k8s.io/apiserver/pkg/authentication/request/bearertoken", - srcs = ["k8s.io/apiserver/pkg/authentication/request/bearertoken/bearertoken.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", - "//vendor:k8s.io/apiserver/pkg/authentication/user", - ], -) - -go_test( - name = "k8s.io/apiserver/pkg/authentication/request/union_test", - srcs = ["k8s.io/apiserver/pkg/authentication/request/union/unionauth_test.go"], - library = ":k8s.io/apiserver/pkg/authentication/request/union", - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"], -) - -go_library( - name = "k8s.io/apiserver/pkg/authentication/request/union", - srcs = ["k8s.io/apiserver/pkg/authentication/request/union/union.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/util/errors", - "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", - "//vendor:k8s.io/apiserver/pkg/authentication/user", - ], -) - -go_test( - name = "k8s.io/apiserver/pkg/authentication/request/x509_test", - srcs = ["k8s.io/apiserver/pkg/authentication/request/x509/x509_test.go"], - library = ":k8s.io/apiserver/pkg/authentication/request/x509", - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/util/sets", - "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", - "//vendor:k8s.io/apiserver/pkg/authentication/user", - ], -) - -go_library( - name = "k8s.io/apiserver/pkg/authentication/request/x509", - srcs = [ - "k8s.io/apiserver/pkg/authentication/request/x509/doc.go", - "k8s.io/apiserver/pkg/authentication/request/x509/x509.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:k8s.io/apimachinery/pkg/util/errors", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", - "//vendor:k8s.io/apiserver/pkg/authentication/user", - ], -) - -go_test( - name = "k8s.io/apiserver/pkg/authentication/token/tokenfile_test", - srcs = ["k8s.io/apiserver/pkg/authentication/token/tokenfile/tokenfile_test.go"], - library = ":k8s.io/apiserver/pkg/authentication/token/tokenfile", - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"], -) - -go_library( - name = "k8s.io/apiserver/pkg/authentication/token/tokenfile", - srcs = ["k8s.io/apiserver/pkg/authentication/token/tokenfile/tokenfile.go"], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:k8s.io/apiserver/pkg/authentication/user", - ], -) - -go_test( - name = "k8s.io/apiserver/pkg/authorization/union_test", - srcs = ["k8s.io/apiserver/pkg/authorization/union/union_test.go"], - library = ":k8s.io/apiserver/pkg/authorization/union", - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apiserver/pkg/authorization/authorizer"], -) - -go_library( - name = "k8s.io/apiserver/pkg/authorization/union", - srcs = ["k8s.io/apiserver/pkg/authorization/union/union.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/util/errors", - "//vendor:k8s.io/apiserver/pkg/authorization/authorizer", - ], -) - -go_test( - name = "k8s.io/apiserver/pkg/httplog_test", - srcs = ["k8s.io/apiserver/pkg/httplog/log_test.go"], - library = ":k8s.io/apiserver/pkg/httplog", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apiserver/pkg/httplog", - srcs = [ - "k8s.io/apiserver/pkg/httplog/doc.go", - "k8s.io/apiserver/pkg/httplog/log.go", - ], - tags = ["automanaged"], - deps = ["//vendor:github.com/golang/glog"], -) - -go_library( - name = "k8s.io/apiserver/pkg/storage/etcd/metrics", - srcs = ["k8s.io/apiserver/pkg/storage/etcd/metrics/metrics.go"], - tags = ["automanaged"], - deps = ["//vendor:github.com/prometheus/client_golang/prometheus"], -) - -go_test( - name = "k8s.io/apiserver/pkg/util/cache_test", - srcs = [ - "k8s.io/apiserver/pkg/util/cache/cache_test.go", - "k8s.io/apiserver/pkg/util/cache/lruexpirecache_test.go", - ], - library = ":k8s.io/apiserver/pkg/util/cache", - tags = ["automanaged"], - deps = [ - "//pkg/util/clock:go_default_library", - "//vendor:github.com/golang/groupcache/lru", - ], -) - -go_library( - name = "k8s.io/apiserver/pkg/util/cache", - srcs = [ - "k8s.io/apiserver/pkg/util/cache/cache.go", - "k8s.io/apiserver/pkg/util/cache/lruexpirecache.go", - ], - tags = ["automanaged"], - deps = ["//vendor:github.com/golang/groupcache/lru"], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/doc.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/errors.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/firsthit_restmapper.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/help.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/interfaces.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/meta.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/multirestmapper.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/priority.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/restmapper.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/api/meta/unstructured.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", - "//vendor:k8s.io/apimachinery/pkg/conversion", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/types", - "//vendor:k8s.io/apimachinery/pkg/util/errors", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apimachinery", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apimachinery/doc.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apimachinery/types.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/api/meta", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apimachinery/registered", - srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apimachinery/registered/registered.go"], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:k8s.io/apimachinery/pkg/api/meta", - "//vendor:k8s.io/apimachinery/pkg/apimachinery", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/doc.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/duration.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/generated.pb.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/helpers.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/meta.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/register.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/types.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/types_swagger_doc_generated.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/watch.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/well_known_labels.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.defaults.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/go-openapi/spec", - "//vendor:github.com/gogo/protobuf/proto", - "//vendor:github.com/gogo/protobuf/sortkeys", - "//vendor:github.com/google/gofuzz", - "//vendor:k8s.io/apimachinery/pkg/conversion", - "//vendor:k8s.io/apimachinery/pkg/labels", - "//vendor:k8s.io/apimachinery/pkg/openapi", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/selection", - "//vendor:k8s.io/apimachinery/pkg/types", - "//vendor:k8s.io/apimachinery/pkg/watch", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", - srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go"], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/types", - "//vendor:k8s.io/apimachinery/pkg/util/json", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/cloner.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/converter.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/deep_equal.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/doc.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/helper.go", - ], - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apimachinery/third_party/forked/golang/reflect"], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/queryparams", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/queryparams/convert.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/conversion/queryparams/doc.go", - ], - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/genericapiserver/openapi/common", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/genericapiserver/openapi/common/common.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/genericapiserver/openapi/common/doc.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/emicklei/go-restful", - "//vendor:github.com/go-openapi/spec", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/labels", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/labels/doc.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/labels/labels.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/labels/selector.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:k8s.io/apimachinery/pkg/selection", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - "//vendor:k8s.io/apimachinery/pkg/util/validation", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/codec.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/codec_check.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/conversion.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/doc.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/embedded.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/error.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/extension.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/generated.pb.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/helper.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/interfaces.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/register.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/scheme.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/scheme_builder.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/types.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/types_proto.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/zz_generated.deepcopy.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/gogo/protobuf/proto", - "//vendor:k8s.io/apimachinery/pkg/conversion", - "//vendor:k8s.io/apimachinery/pkg/conversion/queryparams", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/errors", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/schema", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/schema/generated.pb.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/schema/group_version.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/schema/interfaces.go", - ], - tags = ["automanaged"], - deps = ["//vendor:github.com/gogo/protobuf/proto"], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/codec_factory.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/negotiated_codec.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/protobuf_extension.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/json", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/protobuf", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/versioning", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/json", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/json/meta.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/ghodss/yaml", - "//vendor:github.com/ugorji/go/codec", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", - "//vendor:k8s.io/apimachinery/pkg/util/framer", - "//vendor:k8s.io/apimachinery/pkg/util/yaml", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/protobuf", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/doc.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/gogo/protobuf/proto", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/recognizer", - "//vendor:k8s.io/apimachinery/pkg/util/framer", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/recognizer", - srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/recognizer/recognizer.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/streaming", - srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/streaming/streaming.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/versioning", - srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/runtime", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/selection", - srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/selection/operator.go"], - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/types", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/types/doc.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/types/namespacedname.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/types/nodename.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/types/uid.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/types/unix_user_id.go", - ], - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/diff", - srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/diff/diff.go"], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/davecgh/go-spew/spew", - "//vendor:k8s.io/apimachinery/pkg/util/validation/field", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/errors", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/errors/doc.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/errors/errors.go", - ], - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/framer", - srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/framer/framer.go"], - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/json", - srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/json/json.go"], - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/net", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/net/http.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/net/interface.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/net/port_range.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/net/port_split.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/net/util.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:golang.org/x/net/http2", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/runtime", - srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go"], - tags = ["automanaged"], - deps = ["//vendor:github.com/golang/glog"], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets/byte.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets/doc.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets/empty.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets/int.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets/int64.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/sets/string.go", - ], - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/validation", - srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/validation/validation.go"], - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/validation/field", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/validation/field/errors.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/validation/field/path.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/util/errors", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/wait", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/wait/doc.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/wait/wait.go", - ], - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apimachinery/pkg/util/runtime"], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/yaml", - srcs = ["k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/util/yaml/decoder.go"], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/ghodss/yaml", - "//vendor:github.com/golang/glog", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch/doc.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch/filter.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch/mux.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch/streamwatcher.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch/until.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/pkg/watch/watch.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/net", - "//vendor:k8s.io/apimachinery/pkg/util/runtime", - "//vendor:k8s.io/apimachinery/pkg/util/wait", - ], -) - -go_library( - name = "k8s.io/client-go/_vendor/k8s.io/apimachinery/third_party/forked/golang/reflect", - srcs = [ - "k8s.io/client-go/_vendor/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go", - "k8s.io/client-go/_vendor/k8s.io/apimachinery/third_party/forked/golang/reflect/type.go", - ], - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/client-go/rest/watch", - srcs = [ - "k8s.io/client-go/rest/watch/decoder.go", - "k8s.io/client-go/rest/watch/encoder.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/streaming", - "//vendor:k8s.io/apimachinery/pkg/watch", - ], -) - -go_test( - name = "k8s.io/client-go/rest/watch_xtest", - srcs = [ - "k8s.io/client-go/rest/watch/decoder_test.go", - "k8s.io/client-go/rest/watch/encoder_test.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer/streaming", - "//vendor:k8s.io/apimachinery/pkg/util/wait", - "//vendor:k8s.io/apimachinery/pkg/watch", - "//vendor:k8s.io/client-go/pkg/api", - "//vendor:k8s.io/client-go/pkg/api/testapi", - "//vendor:k8s.io/client-go/rest/watch", - ], -) - -go_test( - name = "k8s.io/apiserver/pkg/authentication/request/headerrequest_test", - srcs = ["k8s.io/apiserver/pkg/authentication/request/headerrequest/requestheader_test.go"], - library = ":k8s.io/apiserver/pkg/authentication/request/headerrequest", - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"], -) - -go_library( - name = "k8s.io/apiserver/pkg/authentication/request/headerrequest", - srcs = ["k8s.io/apiserver/pkg/authentication/request/headerrequest/requestheader.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/util/sets", - "//vendor:k8s.io/apiserver/pkg/authentication/authenticator", - "//vendor:k8s.io/apiserver/pkg/authentication/request/x509", - "//vendor:k8s.io/apiserver/pkg/authentication/user", - "//vendor:k8s.io/client-go/pkg/util/cert", - ], -) - -go_test( - name = "k8s.io/apiserver/pkg/handlers/negotiation_test", - srcs = ["k8s.io/apiserver/pkg/handlers/negotiation/negotiate_test.go"], - library = ":k8s.io/apiserver/pkg/handlers/negotiation", - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", - "//vendor:k8s.io/apimachinery/pkg/runtime", - ], -) - -go_library( - name = "k8s.io/apiserver/pkg/handlers/negotiation", - srcs = [ - "k8s.io/apiserver/pkg/handlers/negotiation/doc.go", - "k8s.io/apiserver/pkg/handlers/negotiation/errors.go", - "k8s.io/apiserver/pkg/handlers/negotiation/negotiate.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:bitbucket.org/ww/goautoneg", - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - ], -) - -go_library( - name = "k8s.io/apiserver/pkg/metrics", - srcs = ["k8s.io/apiserver/pkg/metrics/metrics.go"], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/emicklei/go-restful", - "//vendor:github.com/prometheus/client_golang/prometheus", - "//vendor:k8s.io/apimachinery/pkg/util/net", - ], -) - -go_test( - name = "k8s.io/apiserver/pkg/request_test", - srcs = ["k8s.io/apiserver/pkg/request/requestinfo_test.go"], - library = ":k8s.io/apiserver/pkg/request", - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apimachinery/pkg/util/sets"], -) - -go_library( - name = "k8s.io/apiserver/pkg/request", - srcs = [ - "k8s.io/apiserver/pkg/request/context.go", - "k8s.io/apiserver/pkg/request/doc.go", - "k8s.io/apiserver/pkg/request/requestcontext.go", - "k8s.io/apiserver/pkg/request/requestinfo.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:golang.org/x/net/context", - "//vendor:k8s.io/apimachinery/pkg/types", - "//vendor:k8s.io/apimachinery/pkg/util/sets", - "//vendor:k8s.io/apiserver/pkg/authentication/user", - ], -) - -go_test( - name = "k8s.io/apiserver/pkg/request_xtest", - srcs = ["k8s.io/apiserver/pkg/request/context_test.go"], - tags = ["automanaged"], - deps = [ - "//pkg/api:go_default_library", - "//vendor:k8s.io/apimachinery/pkg/types", - "//vendor:k8s.io/apiserver/pkg/authentication/user", - "//vendor:k8s.io/apiserver/pkg/request", - ], -) - -go_test( - name = "k8s.io/apiserver/pkg/util/wsstream_test", - srcs = [ - "k8s.io/apiserver/pkg/util/wsstream/conn_test.go", - "k8s.io/apiserver/pkg/util/wsstream/stream_test.go", - ], - library = ":k8s.io/apiserver/pkg/util/wsstream", - tags = ["automanaged"], - deps = ["//vendor:golang.org/x/net/websocket"], -) - -go_library( - name = "k8s.io/apiserver/pkg/util/wsstream", - srcs = [ - "k8s.io/apiserver/pkg/util/wsstream/conn.go", - "k8s.io/apiserver/pkg/util/wsstream/doc.go", - "k8s.io/apiserver/pkg/util/wsstream/stream.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/golang/glog", - "//vendor:golang.org/x/net/websocket", - "//vendor:k8s.io/apimachinery/pkg/util/runtime", - ], -) - -go_library( - name = "k8s.io/apiserver/pkg/webhook", - srcs = ["k8s.io/apiserver/pkg/webhook/webhook.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/runtime/serializer", - "//vendor:k8s.io/apimachinery/pkg/util/wait", - "//vendor:k8s.io/client-go/pkg/api", - "//vendor:k8s.io/client-go/pkg/api/errors", - "//vendor:k8s.io/client-go/pkg/apis/authorization/install", - "//vendor:k8s.io/client-go/rest", - "//vendor:k8s.io/client-go/tools/clientcmd", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/api/errors_test", - srcs = ["k8s.io/apimachinery/pkg/api/errors/errors_test.go"], - library = ":k8s.io/apimachinery/pkg/api/errors", - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/validation/field", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/api/errors", - srcs = [ - "k8s.io/apimachinery/pkg/api/errors/doc.go", - "k8s.io/apimachinery/pkg/api/errors/errors.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", - "//vendor:k8s.io/apimachinery/pkg/runtime", - "//vendor:k8s.io/apimachinery/pkg/runtime/schema", - "//vendor:k8s.io/apimachinery/pkg/util/validation/field", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/apis/meta/v1/validation_test", - srcs = ["k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation_test.go"], - library = ":k8s.io/apimachinery/pkg/apis/meta/v1/validation", - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apimachinery/pkg/util/validation/field"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/apis/meta/v1/validation", - srcs = ["k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation.go"], - tags = ["automanaged"], - deps = [ - "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", - "//vendor:k8s.io/apimachinery/pkg/util/validation", - "//vendor:k8s.io/apimachinery/pkg/util/validation/field", - ], -) - -go_library( - name = "k8s.io/apimachinery/pkg/openapi", - srcs = [ - "k8s.io/apimachinery/pkg/openapi/common.go", - "k8s.io/apimachinery/pkg/openapi/doc.go", - ], - tags = ["automanaged"], - deps = [ - "//vendor:github.com/emicklei/go-restful", - "//vendor:github.com/go-openapi/spec", - ], -) - -go_test( - name = "k8s.io/apimachinery/pkg/util/rand_test", - srcs = ["k8s.io/apimachinery/pkg/util/rand/rand_test.go"], - library = ":k8s.io/apimachinery/pkg/util/rand", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apimachinery/pkg/util/rand", - srcs = ["k8s.io/apimachinery/pkg/util/rand/rand.go"], - tags = ["automanaged"], -) - -go_test( - name = "k8s.io/apiserver/pkg/storage/names_test", - srcs = ["k8s.io/apiserver/pkg/storage/names/generate_test.go"], - library = ":k8s.io/apiserver/pkg/storage/names", - tags = ["automanaged"], -) - -go_library( - name = "k8s.io/apiserver/pkg/storage/names", - srcs = ["k8s.io/apiserver/pkg/storage/names/generate.go"], - tags = ["automanaged"], - deps = ["//vendor:k8s.io/apimachinery/pkg/util/rand"], ) From 3a17d433aa7835de7eb69148c3c61b4f37c370d2 Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Mon, 16 Jan 2017 17:00:37 +0100 Subject: [PATCH 3/3] Move first pkg/api/validation's into apimachinery --- pkg/api/validation/BUILD | 1 + pkg/api/validation/genericvalidation/BUILD | 6 +- .../{validation.go => objectmeta.go} | 69 ++------------- ...{validation_test.go => objectmeta_test.go} | 3 +- pkg/api/validation/validation.go | 19 +++-- .../apimachinery/pkg/api/validation/doc.go | 18 ++++ .../pkg/api/validation/generic.go | 85 +++++++++++++++++++ .../pkg/authentication/serviceaccount/util.go | 6 +- vendor/BUILD | 15 +++- 9 files changed, 142 insertions(+), 80 deletions(-) rename pkg/api/validation/genericvalidation/{validation.go => objectmeta.go} (81%) rename pkg/api/validation/genericvalidation/{validation_test.go => objectmeta_test.go} (99%) create mode 100644 staging/src/k8s.io/apimachinery/pkg/api/validation/doc.go create mode 100644 staging/src/k8s.io/apimachinery/pkg/api/validation/generic.go diff --git a/pkg/api/validation/BUILD b/pkg/api/validation/BUILD index 25f75fbfd1c..e0693057678 100644 --- a/pkg/api/validation/BUILD +++ b/pkg/api/validation/BUILD @@ -33,6 +33,7 @@ go_library( "//vendor:github.com/exponent-io/jsonpath", "//vendor:github.com/golang/glog", "//vendor:k8s.io/apimachinery/pkg/api/meta", + "//vendor:k8s.io/apimachinery/pkg/api/validation", "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1/validation", diff --git a/pkg/api/validation/genericvalidation/BUILD b/pkg/api/validation/genericvalidation/BUILD index c88dcca65b7..152de45d868 100644 --- a/pkg/api/validation/genericvalidation/BUILD +++ b/pkg/api/validation/genericvalidation/BUILD @@ -12,12 +12,13 @@ go_library( name = "go_default_library", srcs = [ "doc.go", - "validation.go", + "objectmeta.go", ], tags = ["automanaged"], deps = [ "//pkg/api:go_default_library", "//pkg/api/v1:go_default_library", + "//vendor:k8s.io/apimachinery/pkg/api/validation", "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1/validation", "//vendor:k8s.io/apimachinery/pkg/runtime/schema", @@ -29,11 +30,12 @@ go_library( go_test( name = "go_default_test", - srcs = ["validation_test.go"], + srcs = ["objectmeta_test.go"], library = ":go_default_library", tags = ["automanaged"], deps = [ "//pkg/api:go_default_library", + "//vendor:k8s.io/apimachinery/pkg/api/validation", "//vendor:k8s.io/apimachinery/pkg/apis/meta/v1", "//vendor:k8s.io/apimachinery/pkg/util/validation/field", ], diff --git a/pkg/api/validation/genericvalidation/validation.go b/pkg/api/validation/genericvalidation/objectmeta.go similarity index 81% rename from pkg/api/validation/genericvalidation/validation.go rename to pkg/api/validation/genericvalidation/objectmeta.go index 84e769c9878..c6046e3b16b 100644 --- a/pkg/api/validation/genericvalidation/validation.go +++ b/pkg/api/validation/genericvalidation/objectmeta.go @@ -20,6 +20,7 @@ import ( "fmt" "strings" + apimachineyvalidation "k8s.io/apimachinery/pkg/api/validation" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1validation "k8s.io/apimachinery/pkg/apis/meta/v1/validation" "k8s.io/apimachinery/pkg/runtime/schema" @@ -34,7 +35,6 @@ import ( // fields by default. var RepairMalformedUpdates bool = true -const IsNegativeErrorMsg string = `must be greater than or equal to 0` const FieldImmutableErrorMsg string = `field is immutable` const totalAnnotationSizeLimitB int = 256 * (1 << 10) // 256 kB @@ -44,67 +44,8 @@ var BannedOwners = map[schema.GroupVersionKind]struct{}{ v1.SchemeGroupVersion.WithKind("Event"): {}, } -// ValidateNameFunc validates that the provided name is valid for a given resource type. -// Not all resources have the same validation rules for names. Prefix is true -// if the name will have a value appended to it. If the name is not valid, -// this returns a list of descriptions of individual characteristics of the -// value that were not valid. Otherwise this returns an empty list or nil. -type ValidateNameFunc func(name string, prefix bool) []string - -// NameIsDNSSubdomain is a ValidateNameFunc for names that must be a DNS subdomain. -func NameIsDNSSubdomain(name string, prefix bool) []string { - if prefix { - name = maskTrailingDash(name) - } - return validation.IsDNS1123Subdomain(name) -} - -// NameIsDNSLabel is a ValidateNameFunc for names that must be a DNS 1123 label. -func NameIsDNSLabel(name string, prefix bool) []string { - if prefix { - name = maskTrailingDash(name) - } - return validation.IsDNS1123Label(name) -} - -// NameIsDNS1035Label is a ValidateNameFunc for names that must be a DNS 952 label. -func NameIsDNS1035Label(name string, prefix bool) []string { - if prefix { - name = maskTrailingDash(name) - } - return validation.IsDNS1035Label(name) -} - -// ValidateNamespaceName can be used to check whether the given namespace name is valid. -// Prefix indicates this name will be used as part of generation, in which case -// trailing dashes are allowed. -var ValidateNamespaceName = NameIsDNSLabel - // ValidateClusterName can be used to check whether the given cluster name is valid. -var ValidateClusterName = NameIsDNS1035Label - -// ValidateServiceAccountName can be used to check whether the given service account name is valid. -// Prefix indicates this name will be used as part of generation, in which case -// trailing dashes are allowed. -var ValidateServiceAccountName = NameIsDNSSubdomain - -// maskTrailingDash replaces the final character of a string with a subdomain safe -// value if is a dash. -func maskTrailingDash(name string) string { - if strings.HasSuffix(name, "-") { - return name[:len(name)-2] + "a" - } - return name -} - -// Validates that given value is not negative. -func ValidateNonnegativeField(value int64, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - if value < 0 { - allErrs = append(allErrs, field.Invalid(fldPath, value, IsNegativeErrorMsg)) - } - return allErrs -} +var ValidateClusterName = apimachineyvalidation.NameIsDNS1035Label // ValidateAnnotations validates that a set of annotations are correctly defined. func ValidateAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { @@ -201,7 +142,7 @@ func ValidateImmutableField(newVal, oldVal interface{}, fldPath *field.Path) fie // ValidateObjectMeta validates an object's metadata on creation. It expects that name generation has already // been performed. // It doesn't return an error for rootscoped resources with namespace, because namespace should already be cleared before. -func ValidateObjectMeta(meta *api.ObjectMeta, requiresNamespace bool, nameFn ValidateNameFunc, fldPath *field.Path) field.ErrorList { +func ValidateObjectMeta(meta *api.ObjectMeta, requiresNamespace bool, nameFn apimachineyvalidation.ValidateNameFunc, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} if len(meta.GenerateName) != 0 { @@ -223,7 +164,7 @@ func ValidateObjectMeta(meta *api.ObjectMeta, requiresNamespace bool, nameFn Val if len(meta.Namespace) == 0 { allErrs = append(allErrs, field.Required(fldPath.Child("namespace"), "")) } else { - for _, msg := range ValidateNamespaceName(meta.Namespace, false) { + for _, msg := range apimachineyvalidation.ValidateNamespaceName(meta.Namespace, false) { allErrs = append(allErrs, field.Invalid(fldPath.Child("namespace"), meta.Namespace, msg)) } } @@ -237,7 +178,7 @@ func ValidateObjectMeta(meta *api.ObjectMeta, requiresNamespace bool, nameFn Val allErrs = append(allErrs, field.Invalid(fldPath.Child("clusterName"), meta.ClusterName, msg)) } } - allErrs = append(allErrs, ValidateNonnegativeField(meta.Generation, fldPath.Child("generation"))...) + allErrs = append(allErrs, apimachineyvalidation.ValidateNonnegativeField(meta.Generation, fldPath.Child("generation"))...) allErrs = append(allErrs, v1validation.ValidateLabels(meta.Labels, fldPath.Child("labels"))...) allErrs = append(allErrs, ValidateAnnotations(meta.Annotations, fldPath.Child("annotations"))...) allErrs = append(allErrs, ValidateOwnerReferences(meta.OwnerReferences, fldPath.Child("ownerReferences"))...) diff --git a/pkg/api/validation/genericvalidation/validation_test.go b/pkg/api/validation/genericvalidation/objectmeta_test.go similarity index 99% rename from pkg/api/validation/genericvalidation/validation_test.go rename to pkg/api/validation/genericvalidation/objectmeta_test.go index 1045c2988de..ad652339201 100644 --- a/pkg/api/validation/genericvalidation/validation_test.go +++ b/pkg/api/validation/genericvalidation/objectmeta_test.go @@ -23,6 +23,7 @@ import ( "testing" "time" + apimachineryvalidation "k8s.io/apimachinery/pkg/api/validation" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/validation/field" "k8s.io/kubernetes/pkg/api" @@ -409,7 +410,7 @@ func TestValidateObjectMetaTrimsTrailingSlash(t *testing.T) { errs := ValidateObjectMeta( &api.ObjectMeta{Name: "test", GenerateName: "foo-"}, false, - NameIsDNSSubdomain, + apimachineryvalidation.NameIsDNSSubdomain, field.NewPath("field")) if len(errs) != 0 { t.Fatalf("unexpected errors: %v", errs) diff --git a/pkg/api/validation/validation.go b/pkg/api/validation/validation.go index fca61370bf2..631119f5c83 100644 --- a/pkg/api/validation/validation.go +++ b/pkg/api/validation/validation.go @@ -28,6 +28,7 @@ import ( "github.com/golang/glog" + apimachineryvalidation "k8s.io/apimachinery/pkg/api/validation" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" unversionedvalidation "k8s.io/apimachinery/pkg/apis/meta/v1/validation" "k8s.io/apimachinery/pkg/labels" @@ -50,7 +51,7 @@ import ( // fields by default. var RepairMalformedUpdates bool = genericvalidation.RepairMalformedUpdates -const isNegativeErrorMsg string = genericvalidation.IsNegativeErrorMsg +const isNegativeErrorMsg string = apimachineryvalidation.IsNegativeErrorMsg const isInvalidQuotaResource string = `must be a standard resource for quota` const fieldImmutableErrorMsg string = genericvalidation.FieldImmutableErrorMsg const isNotIntegerErrorMsg string = `must be an integer` @@ -175,7 +176,7 @@ func ValidateOwnerReferences(ownerReferences []metav1.OwnerReference, fldPath *f // if the name will have a value appended to it. If the name is not valid, // this returns a list of descriptions of individual characteristics of the // value that were not valid. Otherwise this returns an empty list or nil. -type ValidateNameFunc genericvalidation.ValidateNameFunc +type ValidateNameFunc apimachineryvalidation.ValidateNameFunc // maskTrailingDash replaces the final character of a string with a subdomain safe // value if is a dash. @@ -210,7 +211,7 @@ var ValidateNodeName = NameIsDNSSubdomain // ValidateNamespaceName can be used to check whether the given namespace name is valid. // Prefix indicates this name will be used as part of generation, in which case // trailing dashes are allowed. -var ValidateNamespaceName = genericvalidation.ValidateNamespaceName +var ValidateNamespaceName = apimachineryvalidation.ValidateNamespaceName // ValidateLimitRangeName can be used to check whether the given limit range name is valid. // Prefix indicates this name will be used as part of generation, in which case @@ -231,7 +232,7 @@ var ValidateSecretName = NameIsDNSSubdomain // ValidateServiceAccountName can be used to check whether the given service account name is valid. // Prefix indicates this name will be used as part of generation, in which case // trailing dashes are allowed. -var ValidateServiceAccountName = genericvalidation.ValidateServiceAccountName +var ValidateServiceAccountName = apimachineryvalidation.ValidateServiceAccountName // ValidateEndpointsName can be used to check whether the given endpoints name is valid. // Prefix indicates this name will be used as part of generation, in which case @@ -244,22 +245,22 @@ var ValidateClusterName = genericvalidation.ValidateClusterName // TODO update all references to these functions to point to the genericvalidation ones // NameIsDNSSubdomain is a ValidateNameFunc for names that must be a DNS subdomain. func NameIsDNSSubdomain(name string, prefix bool) []string { - return genericvalidation.NameIsDNSSubdomain(name, prefix) + return apimachineryvalidation.NameIsDNSSubdomain(name, prefix) } // NameIsDNSLabel is a ValidateNameFunc for names that must be a DNS 1123 label. func NameIsDNSLabel(name string, prefix bool) []string { - return genericvalidation.NameIsDNSLabel(name, prefix) + return apimachineryvalidation.NameIsDNSLabel(name, prefix) } // NameIsDNS1035Label is a ValidateNameFunc for names that must be a DNS 952 label. func NameIsDNS1035Label(name string, prefix bool) []string { - return genericvalidation.NameIsDNS1035Label(name, prefix) + return apimachineryvalidation.NameIsDNS1035Label(name, prefix) } // Validates that given value is not negative. func ValidateNonnegativeField(value int64, fldPath *field.Path) field.ErrorList { - return genericvalidation.ValidateNonnegativeField(value, fldPath) + return apimachineryvalidation.ValidateNonnegativeField(value, fldPath) } // Validates that a Quantity is not negative @@ -289,7 +290,7 @@ func ValidateImmutableAnnotation(newVal string, oldVal string, annotation string // It doesn't return an error for rootscoped resources with namespace, because namespace should already be cleared before. // TODO: Remove calls to this method scattered in validations of specific resources, e.g., ValidatePodUpdate. func ValidateObjectMeta(meta *api.ObjectMeta, requiresNamespace bool, nameFn ValidateNameFunc, fldPath *field.Path) field.ErrorList { - return genericvalidation.ValidateObjectMeta(meta, requiresNamespace, genericvalidation.ValidateNameFunc(nameFn), fldPath) + return genericvalidation.ValidateObjectMeta(meta, requiresNamespace, apimachineryvalidation.ValidateNameFunc(nameFn), fldPath) } // ValidateObjectMetaUpdate validates an object's metadata when updated diff --git a/staging/src/k8s.io/apimachinery/pkg/api/validation/doc.go b/staging/src/k8s.io/apimachinery/pkg/api/validation/doc.go new file mode 100644 index 00000000000..9f20152e452 --- /dev/null +++ b/staging/src/k8s.io/apimachinery/pkg/api/validation/doc.go @@ -0,0 +1,18 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Package validation contains generic api type validation functions. +package validation // import "k8s.io/apimachinery/pkg/api/validation" diff --git a/staging/src/k8s.io/apimachinery/pkg/api/validation/generic.go b/staging/src/k8s.io/apimachinery/pkg/api/validation/generic.go new file mode 100644 index 00000000000..348cdc0873b --- /dev/null +++ b/staging/src/k8s.io/apimachinery/pkg/api/validation/generic.go @@ -0,0 +1,85 @@ +/* +Copyright 2014 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package validation + +import ( + "strings" + + "k8s.io/apimachinery/pkg/util/validation" + "k8s.io/apimachinery/pkg/util/validation/field" +) + +const IsNegativeErrorMsg string = `must be greater than or equal to 0` + +// ValidateNameFunc validates that the provided name is valid for a given resource type. +// Not all resources have the same validation rules for names. Prefix is true +// if the name will have a value appended to it. If the name is not valid, +// this returns a list of descriptions of individual characteristics of the +// value that were not valid. Otherwise this returns an empty list or nil. +type ValidateNameFunc func(name string, prefix bool) []string + +// NameIsDNSSubdomain is a ValidateNameFunc for names that must be a DNS subdomain. +func NameIsDNSSubdomain(name string, prefix bool) []string { + if prefix { + name = maskTrailingDash(name) + } + return validation.IsDNS1123Subdomain(name) +} + +// NameIsDNSLabel is a ValidateNameFunc for names that must be a DNS 1123 label. +func NameIsDNSLabel(name string, prefix bool) []string { + if prefix { + name = maskTrailingDash(name) + } + return validation.IsDNS1123Label(name) +} + +// NameIsDNS1035Label is a ValidateNameFunc for names that must be a DNS 952 label. +func NameIsDNS1035Label(name string, prefix bool) []string { + if prefix { + name = maskTrailingDash(name) + } + return validation.IsDNS1035Label(name) +} + +// ValidateNamespaceName can be used to check whether the given namespace name is valid. +// Prefix indicates this name will be used as part of generation, in which case +// trailing dashes are allowed. +var ValidateNamespaceName = NameIsDNSLabel + +// ValidateServiceAccountName can be used to check whether the given service account name is valid. +// Prefix indicates this name will be used as part of generation, in which case +// trailing dashes are allowed. +var ValidateServiceAccountName = NameIsDNSSubdomain + +// maskTrailingDash replaces the final character of a string with a subdomain safe +// value if is a dash. +func maskTrailingDash(name string) string { + if strings.HasSuffix(name, "-") { + return name[:len(name)-2] + "a" + } + return name +} + +// Validates that given value is not negative. +func ValidateNonnegativeField(value int64, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if value < 0 { + allErrs = append(allErrs, field.Invalid(fldPath, value, IsNegativeErrorMsg)) + } + return allErrs +} diff --git a/staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util.go b/staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util.go index a4e7c4b3d5d..ac3c252b751 100644 --- a/staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util.go +++ b/staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "k8s.io/kubernetes/pkg/api/validation/genericvalidation" + apimachineryvalidation "k8s.io/apimachinery/pkg/api/validation" ) const ( @@ -50,10 +50,10 @@ func SplitUsername(username string) (string, string, error) { return "", "", invalidUsernameErr } namespace, name := parts[0], parts[1] - if len(genericvalidation.ValidateNamespaceName(namespace, false)) != 0 { + if len(apimachineryvalidation.ValidateNamespaceName(namespace, false)) != 0 { return "", "", invalidUsernameErr } - if len(genericvalidation.ValidateServiceAccountName(name, false)) != 0 { + if len(apimachineryvalidation.ValidateServiceAccountName(name, false)) != 0 { return "", "", invalidUsernameErr } return namespace, name, nil diff --git a/vendor/BUILD b/vendor/BUILD index aeba276c4df..0164de92aa8 100644 --- a/vendor/BUILD +++ b/vendor/BUILD @@ -8746,7 +8746,7 @@ go_library( name = "k8s.io/apiserver/pkg/authentication/serviceaccount", srcs = ["k8s.io/apiserver/pkg/authentication/serviceaccount/util.go"], tags = ["automanaged"], - deps = ["//pkg/api/validation/genericvalidation:go_default_library"], + deps = ["//vendor:k8s.io/apimachinery/pkg/api/validation"], ) go_test( @@ -13382,3 +13382,16 @@ filegroup( srcs = [":package-srcs"], tags = ["automanaged"], ) + +go_library( + name = "k8s.io/apimachinery/pkg/api/validation", + srcs = [ + "k8s.io/apimachinery/pkg/api/validation/doc.go", + "k8s.io/apimachinery/pkg/api/validation/generic.go", + ], + tags = ["automanaged"], + deps = [ + "//vendor:k8s.io/apimachinery/pkg/util/validation", + "//vendor:k8s.io/apimachinery/pkg/util/validation/field", + ], +)