-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Triggering different build * Checking if nodes can be listed * Trigger build * Resource patching. Extending resources of Kubernetes nodes to include 'fake' GPUs. * Fixed command to describe nodes * Kuttl tests for checking if GPUs we added correctly to the nodes * Fixed namespace issue and node name issue. * Adding all tests again now that the resource extension passes * Changed where the extended resources are tested * Added error checks for 'curl' calls. Rename variables to use lower case. * Fixed 'if' equal operator
- Loading branch information
1 parent
19ded5c
commit a4d16e1
Showing
7 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
# Verify that GPUs are a resource for the node | ||
apiVersion: v1 | ||
kind: Node | ||
metadata: | ||
name: test-worker | ||
status: | ||
allocatable: | ||
nvidia.com/gpu: "8" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Verify that the namespace was created | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: extended-resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: extended-resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: gpu-job | ||
namespace: extended-resources | ||
status: | ||
conditions: | ||
- type: Complete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: gpu-job | ||
namespace: extended-resources | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: gpu-job | ||
image: ubuntu:latest | ||
command: [ "/bin/bash", "-c", "--" ] | ||
args: [ "sleep 10;" ] | ||
resources: | ||
requests: | ||
nvidia.com/gpu: 8 | ||
limits: | ||
nvidia.com/gpu: 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestSuite | ||
testDirs: | ||
- test/e2e-kuttl-extended-resources/ | ||
timeout: 60 | ||
artifactsDir: _output/logs | ||
commands: |