From 90a555545e8ac6b286993be73b6b1571ec092801 Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Thu, 13 Jul 2017 11:22:53 -0700 Subject: [PATCH] client-go: add canonical import comment --- .../clientset_generated/clientset/BUILD | 1 + .../clientset_generated/clientset/import.go | 19 +++++++++++++++++++ staging/src/k8s.io/client-go/kubernetes/BUILD | 1 + .../src/k8s.io/client-go/kubernetes/import.go | 19 +++++++++++++++++++ 4 files changed, 40 insertions(+) create mode 100644 pkg/client/clientset_generated/clientset/import.go create mode 100644 staging/src/k8s.io/client-go/kubernetes/import.go diff --git a/pkg/client/clientset_generated/clientset/BUILD b/pkg/client/clientset_generated/clientset/BUILD index c35ae87d0ce..a922681e791 100644 --- a/pkg/client/clientset_generated/clientset/BUILD +++ b/pkg/client/clientset_generated/clientset/BUILD @@ -12,6 +12,7 @@ go_library( srcs = [ "clientset.go", "doc.go", + "import.go", "import_known_versions.go", ], tags = ["automanaged"], diff --git a/pkg/client/clientset_generated/clientset/import.go b/pkg/client/clientset_generated/clientset/import.go new file mode 100644 index 00000000000..0dcf5f0b90b --- /dev/null +++ b/pkg/client/clientset_generated/clientset/import.go @@ -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" diff --git a/staging/src/k8s.io/client-go/kubernetes/BUILD b/staging/src/k8s.io/client-go/kubernetes/BUILD index 089edd660fb..44252b1b176 100644 --- a/staging/src/k8s.io/client-go/kubernetes/BUILD +++ b/staging/src/k8s.io/client-go/kubernetes/BUILD @@ -12,6 +12,7 @@ go_library( srcs = [ "clientset.go", "doc.go", + "import.go", ], tags = ["automanaged"], deps = [ diff --git a/staging/src/k8s.io/client-go/kubernetes/import.go b/staging/src/k8s.io/client-go/kubernetes/import.go new file mode 100644 index 00000000000..c4f9a91bcfb --- /dev/null +++ b/staging/src/k8s.io/client-go/kubernetes/import.go @@ -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"