Merge pull request #48892 from ericchiang/client-go-canonical-import

Automatic merge from submit-queue (batch tested with PRs 47066, 48892, 48933, 48854, 48894)

client-go: add canonical import comment

Ensure users check out client-go to the correct location. The install error now reads:

```
can't load package: package github.com/kubernetes/client-go/kubernetes: code in directory /home/eric/src/github.com/kubernetes/client-go/kubernetes expects import "k8s.io/client-go/kubernetes"
```

ref https://github.com/kubernetes/client-go/issues/223

/cc @caesarxuchao @lavalamp 

```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue 2017-07-14 12:50:49 -07:00 committed by GitHub
commit a933551aaa
4 changed files with 40 additions and 0 deletions

View File

@ -12,6 +12,7 @@ go_library(
srcs = [
"clientset.go",
"doc.go",
"import.go",
"import_known_versions.go",
],
tags = ["automanaged"],

View File

@ -0,0 +1,19 @@
/*
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.
*/
// This file exists to enforce this clientset's vanity import path.
package clientset // import "k8s.io/kubernetes/pkg/client/clientset_generated/clientset"

View File

@ -12,6 +12,7 @@ go_library(
srcs = [
"clientset.go",
"doc.go",
"import.go",
],
tags = ["automanaged"],
deps = [

View File

@ -0,0 +1,19 @@
/*
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.
*/
// This file exists to enforce this clientset's vanity import path.
package kubernetes // import "k8s.io/client-go/kubernetes"