Skip to content

Commit 3571b94

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 8b216f3 commit 3571b94

File tree

60 files changed

+60
-60
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+60
-60
lines changed

admission/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=admission.k8s.io
2222

23-
package v1 // import "k8s.io/api/admission/v1"
23+
package v1

admission/v1beta1/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=admission.k8s.io
2323

24-
package v1beta1 // import "k8s.io/api/admission/v1beta1"
24+
package v1beta1

admissionregistration/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ limitations under the License.
2424
// AdmissionConfiguration and AdmissionPluginConfiguration are legacy static admission plugin configuration
2525
// MutatingWebhookConfiguration and ValidatingWebhookConfiguration are for the
2626
// new dynamic admission controller configuration.
27-
package v1 // import "k8s.io/api/admissionregistration/v1"
27+
package v1

admissionregistration/v1alpha1/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
// +groupName=admissionregistration.k8s.io
2222

2323
// Package v1alpha1 is the v1alpha1 version of the API.
24-
package v1alpha1 // import "k8s.io/api/admissionregistration/v1alpha1"
24+
package v1alpha1

admissionregistration/v1beta1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ limitations under the License.
2424
// AdmissionConfiguration and AdmissionPluginConfiguration are legacy static admission plugin configuration
2525
// MutatingWebhookConfiguration and ValidatingWebhookConfiguration are for the
2626
// new dynamic admission controller configuration.
27-
package v1beta1 // import "k8s.io/api/admissionregistration/v1beta1"
27+
package v1beta1

apidiscovery/v2/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=apidiscovery.k8s.io
2222

23-
package v2 // import "k8s.io/api/apidiscovery/v2"
23+
package v2

apidiscovery/v2beta1/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=apidiscovery.k8s.io
2323

24-
package v2beta1 // import "k8s.io/api/apidiscovery/v2beta1"
24+
package v2beta1

apiserverinternal/v1alpha1/doc.go

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

2323
// Package v1alpha1 contains the v1alpha1 version of the API used by the
2424
// apiservers themselves.
25-
package v1alpha1 // import "k8s.io/api/apiserverinternal/v1alpha1"
25+
package v1alpha1

apps/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ limitations under the License.
1919
// +k8s:openapi-gen=true
2020
// +k8s:prerelease-lifecycle-gen=true
2121

22-
package v1 // import "k8s.io/api/apps/v1"
22+
package v1

apps/v1beta1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ limitations under the License.
1919
// +k8s:openapi-gen=true
2020
// +k8s:prerelease-lifecycle-gen=true
2121

22-
package v1beta1 // import "k8s.io/api/apps/v1beta1"
22+
package v1beta1

apps/v1beta2/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ limitations under the License.
1919
// +k8s:openapi-gen=true
2020
// +k8s:prerelease-lifecycle-gen=true
2121

22-
package v1beta2 // import "k8s.io/api/apps/v1beta2"
22+
package v1beta2

authentication/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:openapi-gen=true
2121
// +k8s:prerelease-lifecycle-gen=true
2222

23-
package v1 // import "k8s.io/api/authentication/v1"
23+
package v1

authentication/v1alpha1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:openapi-gen=true
2121
// +k8s:prerelease-lifecycle-gen=true
2222

23-
package v1alpha1 // import "k8s.io/api/authentication/v1alpha1"
23+
package v1alpha1

authentication/v1beta1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:openapi-gen=true
2121
// +k8s:prerelease-lifecycle-gen=true
2222

23-
package v1beta1 // import "k8s.io/api/authentication/v1beta1"
23+
package v1beta1

authorization/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=authorization.k8s.io
2222

23-
package v1 // import "k8s.io/api/authorization/v1"
23+
package v1

authorization/v1beta1/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=authorization.k8s.io
2323

24-
package v1beta1 // import "k8s.io/api/authorization/v1beta1"
24+
package v1beta1

autoscaling/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ limitations under the License.
1919
// +k8s:openapi-gen=true
2020
// +k8s:prerelease-lifecycle-gen=true
2121

22-
package v1 // import "k8s.io/api/autoscaling/v1"
22+
package v1

autoscaling/v2/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ limitations under the License.
1919
// +k8s:openapi-gen=true
2020
// +k8s:prerelease-lifecycle-gen=true
2121

22-
package v2 // import "k8s.io/api/autoscaling/v2"
22+
package v2

autoscaling/v2beta1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ limitations under the License.
1919
// +k8s:openapi-gen=true
2020
// +k8s:prerelease-lifecycle-gen=true
2121

22-
package v2beta1 // import "k8s.io/api/autoscaling/v2beta1"
22+
package v2beta1

autoscaling/v2beta2/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ limitations under the License.
1919
// +k8s:openapi-gen=true
2020
// +k8s:prerelease-lifecycle-gen=true
2121

22-
package v2beta2 // import "k8s.io/api/autoscaling/v2beta2"
22+
package v2beta2

batch/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ limitations under the License.
1818
// +k8s:protobuf-gen=package
1919
// +k8s:openapi-gen=true
2020
// +k8s:prerelease-lifecycle-gen=true
21-
package v1 // import "k8s.io/api/batch/v1"
21+
package v1

batch/v1beta1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ limitations under the License.
1919
// +k8s:openapi-gen=true
2020
// +k8s:prerelease-lifecycle-gen=true
2121

22-
package v1beta1 // import "k8s.io/api/batch/v1beta1"
22+
package v1beta1

certificates/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=certificates.k8s.io
2222

23-
package v1 // import "k8s.io/api/certificates/v1"
23+
package v1

certificates/v1alpha1/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=certificates.k8s.io
2323

24-
package v1alpha1 // import "k8s.io/api/certificates/v1alpha1"
24+
package v1alpha1

certificates/v1beta1/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=certificates.k8s.io
2323

24-
package v1beta1 // import "k8s.io/api/certificates/v1beta1"
24+
package v1beta1

coordination/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=coordination.k8s.io
2323

24-
package v1 // import "k8s.io/api/coordination/v1"
24+
package v1

coordination/v1alpha2/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=coordination.k8s.io
2323

24-
package v1alpha2 // import "k8s.io/api/coordination/v1alpha2"
24+
package v1alpha2

coordination/v1beta1/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=coordination.k8s.io
2323

24-
package v1beta1 // import "k8s.io/api/coordination/v1beta1"
24+
package v1beta1

core/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
// +groupName=
2222

2323
// Package v1 is the v1 version of the core API.
24-
package v1 // import "k8s.io/api/core/v1"
24+
package v1

discovery/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=discovery.k8s.io
2222

23-
package v1 // import "k8s.io/api/discovery/v1"
23+
package v1

discovery/v1beta1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=discovery.k8s.io
2222

23-
package v1beta1 // import "k8s.io/api/discovery/v1beta1"
23+
package v1beta1

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 api // import "k8s.io/api"
17+
package api

events/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=events.k8s.io
2222

23-
package v1 // import "k8s.io/api/events/v1"
23+
package v1

events/v1beta1/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=events.k8s.io
2323

24-
package v1beta1 // import "k8s.io/api/events/v1beta1"
24+
package v1beta1

extensions/v1beta1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ limitations under the License.
1919
// +k8s:openapi-gen=true
2020
// +k8s:prerelease-lifecycle-gen=true
2121

22-
package v1beta1 // import "k8s.io/api/extensions/v1beta1"
22+
package v1beta1

flowcontrol/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ limitations under the License.
2222
// +groupName=flowcontrol.apiserver.k8s.io
2323

2424
// Package v1 holds api types of version v1 for group "flowcontrol.apiserver.k8s.io".
25-
package v1 // import "k8s.io/api/flowcontrol/v1"
25+
package v1

flowcontrol/v1beta1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ limitations under the License.
2222
// +groupName=flowcontrol.apiserver.k8s.io
2323

2424
// Package v1beta1 holds api types of version v1alpha1 for group "flowcontrol.apiserver.k8s.io".
25-
package v1beta1 // import "k8s.io/api/flowcontrol/v1beta1"
25+
package v1beta1

flowcontrol/v1beta2/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ limitations under the License.
2222
// +groupName=flowcontrol.apiserver.k8s.io
2323

2424
// Package v1beta2 holds api types of version v1alpha1 for group "flowcontrol.apiserver.k8s.io".
25-
package v1beta2 // import "k8s.io/api/flowcontrol/v1beta2"
25+
package v1beta2

flowcontrol/v1beta3/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ limitations under the License.
2222
// +groupName=flowcontrol.apiserver.k8s.io
2323

2424
// Package v1beta3 holds api types of version v1beta3 for group "flowcontrol.apiserver.k8s.io".
25-
package v1beta3 // import "k8s.io/api/flowcontrol/v1beta3"
25+
package v1beta3

imagepolicy/v1alpha1/doc.go

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

2121
// +groupName=imagepolicy.k8s.io
2222

23-
package v1alpha1 // import "k8s.io/api/imagepolicy/v1alpha1"
23+
package v1alpha1

networking/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=networking.k8s.io
2222

23-
package v1 // import "k8s.io/api/networking/v1"
23+
package v1

networking/v1alpha1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=networking.k8s.io
2222

23-
package v1alpha1 // import "k8s.io/api/networking/v1alpha1"
23+
package v1alpha1

networking/v1beta1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=networking.k8s.io
2222

23-
package v1beta1 // import "k8s.io/api/networking/v1beta1"
23+
package v1beta1

node/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=node.k8s.io
2222

23-
package v1 // import "k8s.io/api/node/v1"
23+
package v1

node/v1alpha1/doc.go

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

2121
// +groupName=node.k8s.io
2222

23-
package v1alpha1 // import "k8s.io/api/node/v1alpha1"
23+
package v1alpha1

node/v1beta1/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=node.k8s.io
2323

24-
package v1beta1 // import "k8s.io/api/node/v1beta1"
24+
package v1beta1

policy/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ limitations under the License.
2222
// Package policy is for any kind of policy object. Suitable examples, even if
2323
// they aren't all here, are PodDisruptionBudget,
2424
// NetworkPolicy, etc.
25-
package v1 // import "k8s.io/api/policy/v1"
25+
package v1

policy/v1beta1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ limitations under the License.
2222
// Package policy is for any kind of policy object. Suitable examples, even if
2323
// they aren't all here, are PodDisruptionBudget,
2424
// NetworkPolicy, etc.
25-
package v1beta1 // import "k8s.io/api/policy/v1beta1"
25+
package v1beta1

rbac/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=rbac.authorization.k8s.io
2222

23-
package v1 // import "k8s.io/api/rbac/v1"
23+
package v1

rbac/v1alpha1/doc.go

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

2121
// +groupName=rbac.authorization.k8s.io
2222

23-
package v1alpha1 // import "k8s.io/api/rbac/v1alpha1"
23+
package v1alpha1

rbac/v1beta1/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=rbac.authorization.k8s.io
2323

24-
package v1beta1 // import "k8s.io/api/rbac/v1beta1"
24+
package v1beta1

resource/v1alpha3/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
// +groupName=resource.k8s.io
2222

2323
// Package v1alpha3 is the v1alpha3 version of the resource API.
24-
package v1alpha3 // import "k8s.io/api/resource/v1alpha3"
24+
package v1alpha3

resource/v1beta1/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
// +groupName=resource.k8s.io
2222

2323
// Package v1beta1 is the v1beta1 version of the resource API.
24-
package v1beta1 // import "k8s.io/api/resource/v1beta1"
24+
package v1beta1

scheduling/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=scheduling.k8s.io
2222

23-
package v1 // import "k8s.io/api/scheduling/v1"
23+
package v1

scheduling/v1alpha1/doc.go

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

2121
// +groupName=scheduling.k8s.io
2222

23-
package v1alpha1 // import "k8s.io/api/scheduling/v1alpha1"
23+
package v1alpha1

scheduling/v1beta1/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=scheduling.k8s.io
2323

24-
package v1beta1 // import "k8s.io/api/scheduling/v1beta1"
24+
package v1beta1

storage/v1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:openapi-gen=true
2121
// +k8s:prerelease-lifecycle-gen=true
2222

23-
package v1 // import "k8s.io/api/storage/v1"
23+
package v1

storage/v1alpha1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:openapi-gen=true
2121
// +k8s:prerelease-lifecycle-gen=true
2222

23-
package v1alpha1 // import "k8s.io/api/storage/v1alpha1"
23+
package v1alpha1

storage/v1beta1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:openapi-gen=true
2121
// +k8s:prerelease-lifecycle-gen=true
2222

23-
package v1beta1 // import "k8s.io/api/storage/v1beta1"
23+
package v1beta1

storagemigration/v1alpha1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ limitations under the License.
2020
// +k8s:prerelease-lifecycle-gen=true
2121
// +groupName=storagemigration.k8s.io
2222

23-
package v1alpha1 // import "k8s.io/api/storagemigration/v1alpha1"
23+
package v1alpha1

0 commit comments

Comments
 (0)