mirror of https://github.com/k3s-io/k3s
Merge pull request #74700 from SataQiu/fix-golint-20190228
Fix golint failures in test/e2e/instrumentation, test/e2e_node/environmentpull/564/head
commit
5756eea804
|
@ -647,7 +647,6 @@ test/e2e/common
|
|||
test/e2e/framework
|
||||
test/e2e/framework/providers/gce
|
||||
test/e2e/framework/providers/kubemark
|
||||
test/e2e/instrumentation
|
||||
test/e2e/instrumentation/logging
|
||||
test/e2e/instrumentation/monitoring
|
||||
test/e2e/lifecycle
|
||||
|
@ -665,7 +664,6 @@ test/e2e/windows
|
|||
test/e2e_kubeadm
|
||||
test/e2e_node
|
||||
test/e2e_node/builder
|
||||
test/e2e_node/environment
|
||||
test/e2e_node/remote
|
||||
test/e2e_node/runner/remote
|
||||
test/e2e_node/services
|
||||
|
|
|
@ -17,6 +17,7 @@ limitations under the License.
|
|||
package instrumentation
|
||||
|
||||
import (
|
||||
// ensure libs have a chance to perform initialization
|
||||
_ "k8s.io/kubernetes/test/e2e/instrumentation/logging"
|
||||
_ "k8s.io/kubernetes/test/e2e/instrumentation/monitoring"
|
||||
)
|
||||
|
|
|
@ -119,12 +119,12 @@ func containerRuntime() error {
|
|||
return printSuccess("Container Runtime Check: %s", success)
|
||||
}
|
||||
|
||||
const kubeletClusterDnsRegexStr = `\/kubelet.*--cluster-dns=(\S+) `
|
||||
const kubeletClusterDNSRegexStr = `\/kubelet.*--cluster-dns=(\S+) `
|
||||
const kubeletClusterDomainRegexStr = `\/kubelet.*--cluster-domain=(\S+)`
|
||||
|
||||
// dns checks that cluster dns has been properly configured and can resolve the kubernetes.default service
|
||||
func dns() error {
|
||||
dnsRegex, err := regexp.Compile(kubeletClusterDnsRegexStr)
|
||||
dnsRegex, err := regexp.Compile(kubeletClusterDNSRegexStr)
|
||||
if err != nil {
|
||||
// This should never happen and can only be fixed by changing the code
|
||||
panic(err)
|
||||
|
|
Loading…
Reference in New Issue