mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-23 21:57:30 +00:00
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
This commit is contained in:
parent
706280d1e7
commit
70a4950f35
@ -148,4 +148,4 @@ reconciliation code that performs a "read/modify-in-place/update" (or patch) wor
|
||||
// apply
|
||||
applied, err := deploymentClient.Apply(ctx, extractedDeployment, metav1.ApplyOptions{FieldManager: fieldMgr})
|
||||
*/
|
||||
package applyconfigurations // import "k8s.io/client-go/applyconfigurations"
|
||||
package applyconfigurations
|
||||
|
@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package discovery provides ways to discover server-supported
|
||||
// API groups, versions and resources.
|
||||
package discovery // import "k8s.io/client-go/discovery"
|
||||
package discovery
|
||||
|
2
doc.go
2
doc.go
@ -14,4 +14,4 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package clientgo // import "k8s.io/client-go"
|
||||
package clientgo
|
||||
|
@ -17,4 +17,4 @@ limitations under the License.
|
||||
// Package fakeclient contains examples on how to use fakeclient in tests.
|
||||
// Note: This file is here to avoid warnings on go build since there are no
|
||||
// non-test files in this package.
|
||||
package fakeclient // import "k8s.io/client-go/examples/fake-client"
|
||||
package fakeclient
|
||||
|
@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package informers provides generated informers for Kubernetes APIs.
|
||||
package informers // import "k8s.io/client-go/informers"
|
||||
package informers
|
||||
|
@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package kubernetes holds packages which implement a clientset for Kubernetes
|
||||
// APIs.
|
||||
package kubernetes // import "k8s.io/client-go/kubernetes"
|
||||
package kubernetes
|
||||
|
@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// This file exists to enforce this clientset's vanity import path.
|
||||
|
||||
package kubernetes // import "k8s.io/client-go/kubernetes"
|
||||
package kubernetes
|
||||
|
@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package listers provides generated listers for Kubernetes APIs.
|
||||
package listers // import "k8s.io/client-go/listers"
|
||||
package listers
|
||||
|
@ -17,4 +17,4 @@ limitations under the License.
|
||||
// +k8s:deepcopy-gen=package
|
||||
// +groupName=client.authentication.k8s.io
|
||||
|
||||
package clientauthentication // import "k8s.io/client-go/pkg/apis/clientauthentication"
|
||||
package clientauthentication
|
||||
|
@ -21,4 +21,4 @@ limitations under the License.
|
||||
|
||||
// +groupName=client.authentication.k8s.io
|
||||
|
||||
package v1 // import "k8s.io/client-go/pkg/apis/clientauthentication/v1"
|
||||
package v1
|
||||
|
@ -21,4 +21,4 @@ limitations under the License.
|
||||
|
||||
// +groupName=client.authentication.k8s.io
|
||||
|
||||
package v1beta1 // import "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1"
|
||||
package v1beta1
|
||||
|
@ -18,4 +18,4 @@ limitations under the License.
|
||||
|
||||
// Package version supplies version information collected at build time to
|
||||
// kubernetes components.
|
||||
package version // import "k8s.io/client-go/pkg/version"
|
||||
package version
|
||||
|
@ -18,4 +18,4 @@ limitations under the License.
|
||||
// and updating Scale for any resource which implements the `scale` subresource,
|
||||
// as long as that subresource operates on a version of scale convertable to
|
||||
// autoscaling.Scale.
|
||||
package scale // import "k8s.io/client-go/scale"
|
||||
package scale
|
||||
|
@ -19,4 +19,4 @@ limitations under the License.
|
||||
// It doesn't have any of its own types -- it's just necessary to
|
||||
// get the expected behavior out of runtime.Scheme.ConvertToVersion
|
||||
// and associated methods.
|
||||
package appsint // import "k8s.io/client-go/scale/scheme/appsint"
|
||||
package appsint
|
||||
|
@ -17,4 +17,4 @@ limitations under the License.
|
||||
// +k8s:conversion-gen=k8s.io/client-go/scale/scheme
|
||||
// +k8s:conversion-gen-external-types=k8s.io/api/apps/v1beta1
|
||||
|
||||
package appsv1beta1 // import "k8s.io/client-go/scale/scheme/appsv1beta1"
|
||||
package appsv1beta1
|
||||
|
@ -17,4 +17,4 @@ limitations under the License.
|
||||
// +k8s:conversion-gen=k8s.io/client-go/scale/scheme
|
||||
// +k8s:conversion-gen-external-types=k8s.io/api/apps/v1beta2
|
||||
|
||||
package appsv1beta2 // import "k8s.io/client-go/scale/scheme/appsv1beta2"
|
||||
package appsv1beta2
|
||||
|
@ -17,4 +17,4 @@ limitations under the License.
|
||||
// +k8s:conversion-gen=k8s.io/client-go/scale/scheme
|
||||
// +k8s:conversion-gen-external-types=k8s.io/api/autoscaling/v1
|
||||
|
||||
package autoscalingv1 // import "k8s.io/client-go/scale/scheme/autoscalingv1"
|
||||
package autoscalingv1
|
||||
|
@ -19,4 +19,4 @@ limitations under the License.
|
||||
// Package scheme contains a runtime.Scheme to be used for serializing
|
||||
// and deserializing different versions of Scale, and for converting
|
||||
// in between them.
|
||||
package scheme // import "k8s.io/client-go/scale/scheme"
|
||||
package scheme
|
||||
|
@ -19,4 +19,4 @@ limitations under the License.
|
||||
// It doesn't have any of its own types -- it's just necessary to
|
||||
// get the expected behavior out of runtime.Scheme.ConvertToVersion
|
||||
// and associated methods.
|
||||
package extensionsint // import "k8s.io/client-go/scale/scheme/extensionsint"
|
||||
package extensionsint
|
||||
|
@ -17,4 +17,4 @@ limitations under the License.
|
||||
// +k8s:conversion-gen=k8s.io/client-go/scale/scheme
|
||||
// +k8s:conversion-gen-external-types=k8s.io/api/extensions/v1beta1
|
||||
|
||||
package extensionsv1beta1 // import "k8s.io/client-go/scale/scheme/extensionsv1beta1"
|
||||
package extensionsv1beta1
|
||||
|
2
tools/cache/doc.go
vendored
2
tools/cache/doc.go
vendored
@ -21,4 +21,4 @@ limitations under the License.
|
||||
// list currently available nodes), and one that additionally acts as
|
||||
// a FIFO queue (for example, to allow a scheduler to process incoming
|
||||
// pods).
|
||||
package cache // import "k8s.io/client-go/tools/cache"
|
||||
package cache
|
||||
|
@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// +k8s:deepcopy-gen=package
|
||||
|
||||
package api // import "k8s.io/client-go/tools/clientcmd/api"
|
||||
package api
|
||||
|
@ -18,4 +18,4 @@ limitations under the License.
|
||||
// +k8s:deepcopy-gen=package
|
||||
// +k8s:defaulter-gen=Kind
|
||||
|
||||
package v1 // import "k8s.io/client-go/tools/clientcmd/api/v1"
|
||||
package v1
|
||||
|
@ -34,4 +34,4 @@ Sample usage from merged .kubeconfig files (local directory, home directory)
|
||||
client, err := metav1.New(config)
|
||||
// ...
|
||||
*/
|
||||
package clientcmd // import "k8s.io/client-go/tools/clientcmd"
|
||||
package clientcmd
|
||||
|
@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package events has all client logic for recording and reporting
|
||||
// "k8s.io/api/events/v1".Event events.
|
||||
package events // import "k8s.io/client-go/tools/events"
|
||||
package events
|
||||
|
@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package portforward adds support for SSH-like port forwarding from the client's
|
||||
// local host to remote containers.
|
||||
package portforward // import "k8s.io/client-go/tools/portforward"
|
||||
package portforward
|
||||
|
@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package record has all client logic for recording and reporting
|
||||
// "k8s.io/api/core/v1".Event events.
|
||||
package record // import "k8s.io/client-go/tools/record"
|
||||
package record
|
||||
|
@ -17,4 +17,4 @@ limitations under the License.
|
||||
// Package remotecommand adds support for executing commands in containers,
|
||||
// with support for separate stdin, stdout, and stderr streams, as well as
|
||||
// TTY.
|
||||
package remotecommand // import "k8s.io/client-go/tools/remotecommand"
|
||||
package remotecommand
|
||||
|
@ -17,4 +17,4 @@ limitations under the License.
|
||||
// package jsonpath is a template engine using jsonpath syntax,
|
||||
// which can be seen at http://goessner.net/articles/JsonPath/.
|
||||
// In addition, it has {range} {end} function to iterate list and slice.
|
||||
package jsonpath // import "k8s.io/client-go/util/jsonpath"
|
||||
package jsonpath
|
||||
|
@ -23,4 +23,4 @@ limitations under the License.
|
||||
// - Multiple consumers and producers. In particular, it is allowed for an
|
||||
// item to be reenqueued while it is being processed.
|
||||
// - Shutdown notifications.
|
||||
package workqueue // import "k8s.io/client-go/util/workqueue"
|
||||
package workqueue
|
||||
|
Loading…
Reference in New Issue
Block a user