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
710c8563
Unverified
Commit
710c8563
authored
Apr 02, 2018
by
Christoph Blecker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix go vet errors
parent
857aac9a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
nvidia-gpus.go
test/e2e/scheduling/nvidia-gpus.go
+1
-1
run_remote.go
test/e2e_node/runner/remote/run_remote.go
+8
-8
synthetic_master_test.go
test/integration/master/synthetic_master_test.go
+1
-1
No files found.
test/e2e/scheduling/nvidia-gpus.go
View file @
710c8563
...
...
@@ -199,7 +199,7 @@ func SetupNVIDIAGPUNode(f *framework.Framework, setupResourceGatherer bool) *fra
var
rsgather
*
framework
.
ContainerResourceGatherer
if
setupResourceGatherer
{
framework
.
Logf
(
"Starting ResourceUsageGather for the created DaemonSet pods."
)
rsgather
,
err
=
framework
.
NewResourceUsageGatherer
(
f
.
ClientSet
,
framework
.
ResourceGathererOptions
{
false
,
false
,
2
*
time
.
Second
,
2
*
time
.
Second
,
true
},
pods
)
rsgather
,
err
=
framework
.
NewResourceUsageGatherer
(
f
.
ClientSet
,
framework
.
ResourceGathererOptions
{
InKubemark
:
false
,
MasterOnly
:
false
,
ResourceDataGatheringPeriod
:
2
*
time
.
Second
,
ProbeDuration
:
2
*
time
.
Second
,
PrintVerboseLogs
:
true
},
pods
)
framework
.
ExpectNoError
(
err
,
"creating ResourceUsageGather for the daemonset pods"
)
go
rsgather
.
StartGatheringData
()
}
...
...
test/e2e_node/runner/remote/run_remote.go
View file @
710c8563
...
...
@@ -134,7 +134,7 @@ type ImageConfig struct {
type
Accelerator
struct
{
Type
string
`json:"type,omitempty"`
Count
int64
`json:"count,
omitempty"`
Count
int64
`json:"count,omitempty"`
}
type
Resources
struct
{
...
...
@@ -142,19 +142,19 @@ type Resources struct {
}
type
GCEImage
struct
{
Image
string
`json:"image,
omitempty"`
ImageDesc
string
`json:"image_description,
omitempty"`
Image
string
`json:"image,omitempty"`
ImageDesc
string
`json:"image_description,omitempty"`
Project
string
`json:"project"`
Metadata
string
`json:"metadata"`
ImageRegex
string
`json:"image_regex,
omitempty"`
ImageRegex
string
`json:"image_regex,omitempty"`
// Defaults to using only the latest image. Acceptable values are [0, # of images that match the regex).
// If the number of existing previous images is lesser than what is desired, the test will use that is available.
PreviousImages
int
`json:"previous_images,
omitempty"`
PreviousImages
int
`json:"previous_images,omitempty"`
Machine
string
`json:"machine,
omitempty"`
Resources
Resources
`json:"resources,
omitempty"`
Machine
string
`json:"machine,omitempty"`
Resources
Resources
`json:"resources,omitempty"`
// This test is for benchmark (no limit verification, more result log, node name has format 'machine-image-uuid') if 'Tests' is non-empty.
Tests
[]
string
`json:"tests,
omitempty"`
Tests
[]
string
`json:"tests,omitempty"`
}
type
internalImageConfig
struct
{
...
...
test/integration/master/synthetic_master_test.go
View file @
710c8563
...
...
@@ -666,7 +666,7 @@ func TestUpdateNodeObjects(t *testing.T) {
go
func
(
lister
int
)
{
w
,
err
:=
c
.
Nodes
()
.
Watch
(
metav1
.
ListOptions
{})
if
err
!=
nil
{
fmt
.
Printf
(
"[watch:%d] error: %v"
,
k
,
err
)
fmt
.
Printf
(
"[watch:%d] error: %v"
,
lister
,
err
)
return
}
i
:=
0
...
...
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