Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5756eea

Browse files
authored
Merge pull request kubernetes#74700 from SataQiu/fix-golint-20190228
Fix golint failures in test/e2e/instrumentation, test/e2e_node/environment
2 parents d0c3b70 + c0a0471 commit 5756eea

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

hack/.golint_failures

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ test/e2e/common
647647
test/e2e/framework
648648
test/e2e/framework/providers/gce
649649
test/e2e/framework/providers/kubemark
650-
test/e2e/instrumentation
651650
test/e2e/instrumentation/logging
652651
test/e2e/instrumentation/monitoring
653652
test/e2e/lifecycle
@@ -665,7 +664,6 @@ test/e2e/windows
665664
test/e2e_kubeadm
666665
test/e2e_node
667666
test/e2e_node/builder
668-
test/e2e_node/environment
669667
test/e2e_node/remote
670668
test/e2e_node/runner/remote
671669
test/e2e_node/services

test/e2e/instrumentation/imports.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
package instrumentation
1818

1919
import (
20+
// ensure libs have a chance to perform initialization
2021
_ "k8s.io/kubernetes/test/e2e/instrumentation/logging"
2122
_ "k8s.io/kubernetes/test/e2e/instrumentation/monitoring"
2223
)

test/e2e_node/environment/conformance.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ func containerRuntime() error {
119119
return printSuccess("Container Runtime Check: %s", success)
120120
}
121121

122-
const kubeletClusterDnsRegexStr = `\/kubelet.*--cluster-dns=(\S+) `
122+
const kubeletClusterDNSRegexStr = `\/kubelet.*--cluster-dns=(\S+) `
123123
const kubeletClusterDomainRegexStr = `\/kubelet.*--cluster-domain=(\S+)`
124124

125125
// dns checks that cluster dns has been properly configured and can resolve the kubernetes.default service
126126
func dns() error {
127-
dnsRegex, err := regexp.Compile(kubeletClusterDnsRegexStr)
127+
dnsRegex, err := regexp.Compile(kubeletClusterDNSRegexStr)
128128
if err != nil {
129129
// This should never happen and can only be fixed by changing the code
130130
panic(err)

0 commit comments

Comments
 (0)