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
a959ae63
Commit
a959ae63
authored
Jan 24, 2018
by
Rohit Agarwal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it possible to override the driver installer daemonset url from test-infra.
parent
f53c26a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
nvidia-gpus.go
test/e2e/scheduling/nvidia-gpus.go
+8
-1
No files found.
test/e2e/scheduling/nvidia-gpus.go
View file @
a959ae63
...
...
@@ -17,6 +17,7 @@ limitations under the License.
package
scheduling
import
(
"os"
"strings"
"time"
...
...
@@ -163,7 +164,12 @@ func testNvidiaGPUsOnCOS(f *framework.Framework) {
framework
.
Logf
(
"Cluster is running on COS. Proceeding with test"
)
if
f
.
BaseName
==
"device-plugin-gpus"
{
dsYamlUrl
=
"https://raw.githubusercontent.com/GoogleCloudPlatform/container-engine-accelerators/master/daemonset.yaml"
dsYamlUrlFromEnv
:=
os
.
Getenv
(
"NVIDIA_DRIVER_INSTALLER_DAEMONSET"
)
if
dsYamlUrlFromEnv
!=
""
{
dsYamlUrl
=
dsYamlUrlFromEnv
}
else
{
dsYamlUrl
=
"https://raw.githubusercontent.com/GoogleCloudPlatform/container-engine-accelerators/master/daemonset.yaml"
}
gpuResourceName
=
framework
.
NVIDIAGPUResourceName
podCreationFunc
=
makeCudaAdditionDevicePluginTestPod
}
else
{
...
...
@@ -172,6 +178,7 @@ func testNvidiaGPUsOnCOS(f *framework.Framework) {
podCreationFunc
=
makeCudaAdditionTestPod
}
framework
.
Logf
(
"Using %v"
,
dsYamlUrl
)
// Creates the DaemonSet that installs Nvidia Drivers.
// The DaemonSet also runs nvidia device plugin for device plugin test.
ds
,
err
:=
framework
.
DsFromManifest
(
dsYamlUrl
)
...
...
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