fix golint failures of e2e/framework/pods.go, provider.go, upgrade_util.go

k3s-v1.15.3
SataQiu 2019-04-01 16:04:29 +08:00
parent 997d5182d0
commit e8a72dea37
3 changed files with 4 additions and 1 deletions

View File

@ -38,6 +38,7 @@ import (
"github.com/onsi/gomega"
)
// DefaultPodDeletionTimeout is the default timeout for deleting pod
const DefaultPodDeletionTimeout = 3 * time.Minute
// ImageWhiteList is the images used in the current test suite. It should be initialized in test suite and

View File

@ -129,7 +129,7 @@ func (n NullProvider) GetGroupNodes(group string) ([]string, error) {
return nil, fmt.Errorf("provider does not support InstanceGroups")
}
// DeleteNode is a base implementation which returns group size.
// GroupSize returns the size of an instance group
func (n NullProvider) GroupSize(group string) (int, error) {
return -1, fmt.Errorf("provider does not support InstanceGroups")
}

View File

@ -57,6 +57,7 @@ func traceRouteToMaster() {
}
}
// CheckMasterVersion validates the master version
func CheckMasterVersion(c clientset.Interface, want string) error {
Logf("Checking master version")
var err error
@ -84,6 +85,7 @@ func CheckMasterVersion(c clientset.Interface, want string) error {
return nil
}
// CheckNodesVersions validates the nodes versions
func CheckNodesVersions(cs clientset.Interface, want string) error {
l := GetReadySchedulableNodesOrDie(cs)
for _, n := range l.Items {