Merge pull request #49218 from caesarxuchao/limit-clientset-visibility

Automatic merge from submit-queue (batch tested with PRs 49218, 48253, 48967, 48460, 49230)

Restrict the visibility of two generated packages in pkg/client/

These two packages are deprecated. Please use the client-go copy of these two packages.

Currently staging/copy.sh copied these two packages to client-go. I'll send follow-up PRs to let code-gen output to client-go directly and remove these two packages. The purpose of this PR is to prevent more imports of these packages while I refactor the codegen.
This commit is contained in:
Kubernetes Submit Queue 2017-07-19 20:05:29 -07:00 committed by GitHub
commit 19e4fac129
2 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,11 @@ go_library(
"import_known_versions.go",
],
tags = ["automanaged"],
visibility = [
"//cmd/kube-controller-manager/app:__pkg__",
"//pkg/client/clientset_generated/clientset:__subpackages__",
"//pkg/client/informers:__subpackages__",
],
deps = [
"//pkg/api:go_default_library",
"//pkg/api/install:go_default_library",

View File

@ -14,6 +14,9 @@ go_library(
"generic.go",
],
tags = ["automanaged"],
visibility = [
"//pkg/client/informers/informers_generated/externalversions:__subpackages__",
],
deps = [
"//pkg/client/clientset_generated/clientset:go_default_library",
"//pkg/client/informers/informers_generated/externalversions/admissionregistration:go_default_library",