Skip to content

Commit 70a4950

Browse files
pohlyk8s-publishing-bot
authored andcommitted
remove import doc comments
The "// import <path>" comment has been superseded by Go modules. We don't have to remove them, but doing so has some advantages: - They are used inconsistently, which is confusing. - We can then also remove the (currently broken) hack/update-vanity-imports.sh. - Last but not least, it would be a first step towards avoiding the k8s.io domain. This commit was generated with sed -i -e 's;^package \(.*\) // import.*;package \1;' $(git grep -l '^package.*// import' | grep -v 'vendor/') Everything was included, except for package labels // import k8s.io/kubernetes/pkg/util/labels because that package is marked as "read-only". Kubernetes-commit: 8a908e0c0bd96a3455edf7e3b5f5af90564e65b0
1 parent 706280d commit 70a4950

File tree

30 files changed

+30
-30
lines changed

30 files changed

+30
-30
lines changed

applyconfigurations/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@ reconciliation code that performs a "read/modify-in-place/update" (or patch) wor
148148
// apply
149149
applied, err := deploymentClient.Apply(ctx, extractedDeployment, metav1.ApplyOptions{FieldManager: fieldMgr})
150150
*/
151-
package applyconfigurations // import "k8s.io/client-go/applyconfigurations"
151+
package applyconfigurations

discovery/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ limitations under the License.
1616

1717
// Package discovery provides ways to discover server-supported
1818
// API groups, versions and resources.
19-
package discovery // import "k8s.io/client-go/discovery"
19+
package discovery

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package clientgo // import "k8s.io/client-go"
17+
package clientgo

examples/fake-client/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ limitations under the License.
1717
// Package fakeclient contains examples on how to use fakeclient in tests.
1818
// Note: This file is here to avoid warnings on go build since there are no
1919
// non-test files in this package.
20-
package fakeclient // import "k8s.io/client-go/examples/fake-client"
20+
package fakeclient

informers/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ limitations under the License.
1515
*/
1616

1717
// Package informers provides generated informers for Kubernetes APIs.
18-
package informers // import "k8s.io/client-go/informers"
18+
package informers

kubernetes/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ limitations under the License.
1616

1717
// Package kubernetes holds packages which implement a clientset for Kubernetes
1818
// APIs.
19-
package kubernetes // import "k8s.io/client-go/kubernetes"
19+
package kubernetes

kubernetes/import.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ limitations under the License.
1616

1717
// This file exists to enforce this clientset's vanity import path.
1818

19-
package kubernetes // import "k8s.io/client-go/kubernetes"
19+
package kubernetes

listers/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ limitations under the License.
1515
*/
1616

1717
// Package listers provides generated listers for Kubernetes APIs.
18-
package listers // import "k8s.io/client-go/listers"
18+
package listers

pkg/apis/clientauthentication/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ limitations under the License.
1717
// +k8s:deepcopy-gen=package
1818
// +groupName=client.authentication.k8s.io
1919

20-
package clientauthentication // import "k8s.io/client-go/pkg/apis/clientauthentication"
20+
package clientauthentication

pkg/apis/clientauthentication/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ limitations under the License.
2121

2222
// +groupName=client.authentication.k8s.io
2323

24-
package v1 // import "k8s.io/client-go/pkg/apis/clientauthentication/v1"
24+
package v1

0 commit comments

Comments
 (0)