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
7181c442
Commit
7181c442
authored
Feb 25, 2019
by
SataQiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some golint failures for pkg/cloudprovider/providers/vsphere/vclib and pkg/kubelet/apis/...
parent
139a13d3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
.golint_failures
hack/.golint_failures
+0
-4
connection_test.go
pkg/cloudprovider/providers/vsphere/vclib/connection_test.go
+5
-5
constants.go
pkg/kubelet/apis/deviceplugin/v1alpha/constants.go
+1
-1
constants.go
pkg/kubelet/apis/pluginregistration/v1alpha1/constants.go
+3
-1
constants.go
pkg/kubelet/apis/pluginregistration/v1beta1/constants.go
+3
-1
No files found.
hack/.golint_failures
View file @
7181c442
...
...
@@ -81,7 +81,6 @@ pkg/capabilities
pkg/cloudprovider/providers/fake
pkg/cloudprovider/providers/photon
pkg/cloudprovider/providers/vsphere
pkg/cloudprovider/providers/vsphere/vclib
pkg/controller
pkg/controller/apis/config/v1alpha1
pkg/controller/bootstrap
...
...
@@ -171,10 +170,7 @@ pkg/kubelet/apis
pkg/kubelet/apis/config
pkg/kubelet/apis/config/v1beta1
pkg/kubelet/apis/cri/testing
pkg/kubelet/apis/deviceplugin/v1alpha
pkg/kubelet/apis/deviceplugin/v1beta1
pkg/kubelet/apis/pluginregistration/v1alpha1
pkg/kubelet/apis/pluginregistration/v1beta1
pkg/kubelet/cadvisor
pkg/kubelet/cadvisor/testing
pkg/kubelet/checkpoint
...
...
pkg/cloudprovider/providers/vsphere/vclib/connection_test.go
View file @
7181c442
...
...
@@ -85,7 +85,7 @@ func TestWithValidCaCert(t *testing.T) {
server
,
_
:=
createTestServer
(
t
,
fixtures
.
CaCertPath
,
fixtures
.
ServerCertPath
,
fixtures
.
ServerKeyPath
,
handler
)
server
.
StartTLS
()
u
:=
mustParseU
rl
(
t
,
server
.
URL
)
u
:=
mustParseU
RL
(
t
,
server
.
URL
)
connection
:=
&
vclib
.
VSphereConnection
{
Hostname
:
u
.
Hostname
(),
...
...
@@ -104,7 +104,7 @@ func TestWithVerificationWithWrongThumbprint(t *testing.T) {
server
,
_
:=
createTestServer
(
t
,
fixtures
.
CaCertPath
,
fixtures
.
ServerCertPath
,
fixtures
.
ServerKeyPath
,
handler
)
server
.
StartTLS
()
u
:=
mustParseU
rl
(
t
,
server
.
URL
)
u
:=
mustParseU
RL
(
t
,
server
.
URL
)
connection
:=
&
vclib
.
VSphereConnection
{
Hostname
:
u
.
Hostname
(),
...
...
@@ -124,7 +124,7 @@ func TestWithVerificationWithoutCaCertOrThumbprint(t *testing.T) {
server
,
_
:=
createTestServer
(
t
,
fixtures
.
CaCertPath
,
fixtures
.
ServerCertPath
,
fixtures
.
ServerKeyPath
,
handler
)
server
.
StartTLS
()
u
:=
mustParseU
rl
(
t
,
server
.
URL
)
u
:=
mustParseU
RL
(
t
,
server
.
URL
)
connection
:=
&
vclib
.
VSphereConnection
{
Hostname
:
u
.
Hostname
(),
...
...
@@ -142,7 +142,7 @@ func TestWithValidThumbprint(t *testing.T) {
server
,
thumbprint
:=
createTestServer
(
t
,
fixtures
.
CaCertPath
,
fixtures
.
ServerCertPath
,
fixtures
.
ServerKeyPath
,
handler
)
server
.
StartTLS
()
u
:=
mustParseU
rl
(
t
,
server
.
URL
)
u
:=
mustParseU
RL
(
t
,
server
.
URL
)
connection
:=
&
vclib
.
VSphereConnection
{
Hostname
:
u
.
Hostname
(),
...
...
@@ -213,7 +213,7 @@ func getRequestVerifier(t *testing.T) (http.HandlerFunc, func()) {
return
handler
,
checker
}
func
mustParseU
rl
(
t
*
testing
.
T
,
i
string
)
*
url
.
URL
{
func
mustParseU
RL
(
t
*
testing
.
T
,
i
string
)
*
url
.
URL
{
u
,
err
:=
url
.
Parse
(
i
)
if
err
!=
nil
{
t
.
Fatalf
(
"Cannot parse URL: %v"
,
err
)
...
...
pkg/kubelet/apis/deviceplugin/v1alpha/constants.go
View file @
7181c442
...
...
@@ -22,7 +22,7 @@ const (
// Unhealthy means that the device is unhealthy
Unhealthy
=
"Unhealthy"
//
C
urrent version of the API supported by kubelet
//
Version is the c
urrent version of the API supported by kubelet
Version
=
"v1alpha2"
// DevicePluginPath is the folder the Device Plugin is expecting sockets to be on
// Only privileged pods have access to this path
...
...
pkg/kubelet/apis/pluginregistration/v1alpha1/constants.go
View file @
7181c442
...
...
@@ -17,6 +17,8 @@ limitations under the License.
package
pluginregistration
const
(
CSIPlugin
=
"CSIPlugin"
// CSIPlugin identifier for registered CSI plugins
CSIPlugin
=
"CSIPlugin"
// DevicePlugin identifier for registered device plugins
DevicePlugin
=
"DevicePlugin"
)
pkg/kubelet/apis/pluginregistration/v1beta1/constants.go
View file @
7181c442
...
...
@@ -17,6 +17,8 @@ limitations under the License.
package
pluginregistration
const
(
CSIPlugin
=
"CSIPlugin"
// CSIPlugin identifier for registered CSI plugins
CSIPlugin
=
"CSIPlugin"
// DevicePlugin identifier for registered device plugins
DevicePlugin
=
"DevicePlugin"
)
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