Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e53118df
Unverified
Commit
e53118df
authored
Apr 24, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 24, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76945 from SataQiu/fix-golint-volume-2019042302
Fix golint failures of pkg/volume/portworx
parents
6cd85298
a37adcea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
.golint_failures
hack/.golint_failures
+0
-1
portworx.go
pkg/volume/portworx/portworx.go
+1
-1
portworx_util.go
pkg/volume/portworx/portworx_util.go
+4
-4
No files found.
hack/.golint_failures
View file @
e53118df
...
@@ -344,7 +344,6 @@ pkg/volume/host_path
...
@@ -344,7 +344,6 @@ pkg/volume/host_path
pkg/volume/iscsi
pkg/volume/iscsi
pkg/volume/nfs
pkg/volume/nfs
pkg/volume/photon_pd
pkg/volume/photon_pd
pkg/volume/portworx
pkg/volume/rbd
pkg/volume/rbd
pkg/volume/scaleio
pkg/volume/scaleio
pkg/volume/storageos
pkg/volume/storageos
...
...
pkg/volume/portworx/portworx.go
View file @
e53118df
...
@@ -37,7 +37,7 @@ const (
...
@@ -37,7 +37,7 @@ const (
attachHostKey
=
"host"
attachHostKey
=
"host"
)
)
//
Thi
s is the primary entrypoint for volume plugins.
//
ProbeVolumePlugin
s is the primary entrypoint for volume plugins.
func
ProbeVolumePlugins
()
[]
volume
.
VolumePlugin
{
func
ProbeVolumePlugins
()
[]
volume
.
VolumePlugin
{
return
[]
volume
.
VolumePlugin
{
&
portworxVolumePlugin
{
nil
,
nil
}}
return
[]
volume
.
VolumePlugin
{
&
portworxVolumePlugin
{
nil
,
nil
}}
}
}
...
...
pkg/volume/portworx/portworx_util.go
View file @
e53118df
...
@@ -263,11 +263,11 @@ func createDriverClient(hostname string, port int32) (*osdclient.Client, error)
...
@@ -263,11 +263,11 @@ func createDriverClient(hostname string, port int32) (*osdclient.Client, error)
return
nil
,
err
return
nil
,
err
}
}
if
isValid
,
err
:=
isClientValid
(
client
);
isValid
{
isValid
,
err
:=
isClientValid
(
client
)
if
isValid
{
return
client
,
nil
return
client
,
nil
}
else
{
return
nil
,
err
}
}
return
nil
,
err
}
}
// getPortworxDriver returns a Portworx volume driver which can be used for cluster wide operations.
// getPortworxDriver returns a Portworx volume driver which can be used for cluster wide operations.
...
@@ -365,7 +365,7 @@ func getPortworxService(host volume.VolumeHost) (*v1.Service, error) {
...
@@ -365,7 +365,7 @@ func getPortworxService(host volume.VolumeHost) (*v1.Service, error) {
}
}
if
svc
==
nil
{
if
svc
==
nil
{
err
=
fmt
.
Errorf
(
"Service: %v not found. Consult Portworx docs to deploy it
.
"
,
pxServiceName
)
err
=
fmt
.
Errorf
(
"Service: %v not found. Consult Portworx docs to deploy it"
,
pxServiceName
)
klog
.
Errorf
(
err
.
Error
())
klog
.
Errorf
(
err
.
Error
())
return
nil
,
err
return
nil
,
err
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment