mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
fix golint failures in test/e2e/instrumentation, test/e2e_node/environment
This commit is contained in:
parent
218642e84e
commit
c0a0471b3b
@ -647,7 +647,6 @@ test/e2e/common
|
|||||||
test/e2e/framework
|
test/e2e/framework
|
||||||
test/e2e/framework/providers/gce
|
test/e2e/framework/providers/gce
|
||||||
test/e2e/framework/providers/kubemark
|
test/e2e/framework/providers/kubemark
|
||||||
test/e2e/instrumentation
|
|
||||||
test/e2e/instrumentation/logging
|
test/e2e/instrumentation/logging
|
||||||
test/e2e/instrumentation/monitoring
|
test/e2e/instrumentation/monitoring
|
||||||
test/e2e/lifecycle
|
test/e2e/lifecycle
|
||||||
@ -665,7 +664,6 @@ test/e2e/windows
|
|||||||
test/e2e_kubeadm
|
test/e2e_kubeadm
|
||||||
test/e2e_node
|
test/e2e_node
|
||||||
test/e2e_node/builder
|
test/e2e_node/builder
|
||||||
test/e2e_node/environment
|
|
||||||
test/e2e_node/remote
|
test/e2e_node/remote
|
||||||
test/e2e_node/runner/remote
|
test/e2e_node/runner/remote
|
||||||
test/e2e_node/services
|
test/e2e_node/services
|
||||||
|
@ -17,6 +17,7 @@ limitations under the License.
|
|||||||
package instrumentation
|
package instrumentation
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
// ensure libs have a chance to perform initialization
|
||||||
_ "k8s.io/kubernetes/test/e2e/instrumentation/logging"
|
_ "k8s.io/kubernetes/test/e2e/instrumentation/logging"
|
||||||
_ "k8s.io/kubernetes/test/e2e/instrumentation/monitoring"
|
_ "k8s.io/kubernetes/test/e2e/instrumentation/monitoring"
|
||||||
)
|
)
|
||||||
|
@ -119,12 +119,12 @@ func containerRuntime() error {
|
|||||||
return printSuccess("Container Runtime Check: %s", success)
|
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+)`
|
const kubeletClusterDomainRegexStr = `\/kubelet.*--cluster-domain=(\S+)`
|
||||||
|
|
||||||
// dns checks that cluster dns has been properly configured and can resolve the kubernetes.default service
|
// dns checks that cluster dns has been properly configured and can resolve the kubernetes.default service
|
||||||
func dns() error {
|
func dns() error {
|
||||||
dnsRegex, err := regexp.Compile(kubeletClusterDnsRegexStr)
|
dnsRegex, err := regexp.Compile(kubeletClusterDNSRegexStr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// This should never happen and can only be fixed by changing the code
|
// This should never happen and can only be fixed by changing the code
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user