fix golint errors in pkg/volume/host_path

This commit is contained in:
yameiwang
2018-11-02 05:16:00 +08:00
parent 2ec4467af1
commit f130e48deb
14 changed files with 16 additions and 17 deletions

View File

@@ -90,7 +90,7 @@ filegroup(
"//pkg/volume/gcepd:all-srcs",
"//pkg/volume/git_repo:all-srcs",
"//pkg/volume/glusterfs:all-srcs",
"//pkg/volume/host_path:all-srcs",
"//pkg/volume/hostpath:all-srcs",
"//pkg/volume/iscsi:all-srcs",
"//pkg/volume/local:all-srcs",
"//pkg/volume/nfs:all-srcs",

View File

@@ -12,7 +12,7 @@ go_library(
"doc.go",
"host_path.go",
],
importpath = "k8s.io/kubernetes/pkg/volume/host_path",
importpath = "k8s.io/kubernetes/pkg/volume/hostpath",
deps = [
"//pkg/util/mount:go_default_library",
"//pkg/volume:go_default_library",

View File

@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// Package host_path contains the internal representation of hostPath
// Package hostpath contains the internal representation of hostPath
// volumes.
package host_path // import "k8s.io/kubernetes/pkg/volume/host_path"
package hostpath // import "k8s.io/kubernetes/pkg/volume/hostpath"

View File

@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package host_path
package hostpath
import (
"fmt"
@@ -32,7 +32,7 @@ import (
"k8s.io/kubernetes/pkg/volume/validation"
)
// This is the primary entrypoint for volume plugins.
// ProbeVolumePlugins is the primary entrypoint for volume plugins.
// The volumeConfig arg provides the ability to configure volume behavior. It is implemented as a pointer to allow nils.
// The hostPathPlugin is used to store the volumeConfig and give it, when needed, to the func that Recycles.
// Tests that exercise recycling should not use this func but instead use ProbeRecyclablePlugins() to override default behavior.

View File

@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package host_path
package hostpath
import (
"fmt"