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
5cf1950e
Commit
5cf1950e
authored
Feb 27, 2019
by
danielqsj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix golint in test/e2e/instrumentation/logging
parent
873fbf91
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
.golint_failures
hack/.golint_failures
+0
-1
generic_soak.go
test/e2e/instrumentation/logging/generic_soak.go
+7
-7
imports.go
test/e2e/instrumentation/logging/imports.go
+2
-2
No files found.
hack/.golint_failures
View file @
5cf1950e
...
...
@@ -645,7 +645,6 @@ test/e2e/common
test/e2e/framework
test/e2e/framework/providers/gce
test/e2e/framework/providers/kubemark
test/e2e/instrumentation/logging
test/e2e/lifecycle
test/e2e/lifecycle/bootstrap
test/e2e/network
...
...
test/e2e/instrumentation/logging/generic_soak.go
View file @
5cf1950e
...
...
@@ -23,8 +23,8 @@ import (
"sync"
"time"
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/gomega"
"github.com/onsi/ginkgo"
"github.com/onsi/gomega"
"k8s.io/api/core/v1"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/framework/config"
...
...
@@ -51,15 +51,15 @@ var _ = instrumentation.SIGDescribe("Logging soak [Performance] [Slow] [Disrupti
// This can expose problems in your docker configuration (logging), log searching infrastructure, to tune deployments to match high load
// scenarios. TODO jayunit100 add this to the kube CI in a follow on infra patch.
It
(
fmt
.
Sprintf
(
"should survive logging 1KB every %v seconds, for a duration of %v"
,
kbRateInSeconds
,
totalLogTime
),
func
()
{
By
(
fmt
.
Sprintf
(
"scaling up to %v pods per node"
,
loggingSoak
.
Scale
))
defer
GinkgoRecover
()
ginkgo
.
It
(
fmt
.
Sprintf
(
"should survive logging 1KB every %v seconds, for a duration of %v"
,
kbRateInSeconds
,
totalLogTime
),
func
()
{
ginkgo
.
By
(
fmt
.
Sprintf
(
"scaling up to %v pods per node"
,
loggingSoak
.
Scale
))
defer
ginkgo
.
GinkgoRecover
()
var
wg
sync
.
WaitGroup
wg
.
Add
(
loggingSoak
.
Scale
)
for
i
:=
0
;
i
<
loggingSoak
.
Scale
;
i
++
{
go
func
()
{
defer
wg
.
Done
()
defer
GinkgoRecover
()
defer
ginkgo
.
GinkgoRecover
()
wave
:=
fmt
.
Sprintf
(
"wave%v"
,
strconv
.
Itoa
(
i
))
framework
.
Logf
(
"Starting logging soak, wave = %v"
,
wave
)
RunLogPodsWithSleepOf
(
f
,
kbRateInSeconds
,
wave
,
totalLogTime
)
...
...
@@ -79,7 +79,7 @@ func RunLogPodsWithSleepOf(f *framework.Framework, sleep time.Duration, podname
nodes
:=
framework
.
GetReadySchedulableNodesOrDie
(
f
.
ClientSet
)
totalPods
:=
len
(
nodes
.
Items
)
Expect
(
totalPods
)
.
NotTo
(
Equal
(
0
))
gomega
.
Expect
(
totalPods
)
.
NotTo
(
gomega
.
Equal
(
0
))
kilobyte
:=
strings
.
Repeat
(
"logs-123"
,
128
)
// 8*128=1024 = 1KB of text.
...
...
test/e2e/instrumentation/logging/imports.go
View file @
5cf1950e
...
...
@@ -17,6 +17,6 @@ limitations under the License.
package
logging
import
(
_
"k8s.io/kubernetes/test/e2e/instrumentation/logging/elasticsearch"
_
"k8s.io/kubernetes/test/e2e/instrumentation/logging/stackdriver"
_
"k8s.io/kubernetes/test/e2e/instrumentation/logging/elasticsearch"
// for elasticsearch provider
_
"k8s.io/kubernetes/test/e2e/instrumentation/logging/stackdriver"
// for stackdriver provider
)
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