Skip to content
Snippets Groups Projects
Commit 08b1bed7 authored by František Dvořák's avatar František Dvořák
Browse files

Support the use-case without GPU nodes

parent 0e0c4347
No related branches found
No related tags found
No related merge requests found
...@@ -607,9 +607,10 @@ ...@@ -607,9 +607,10 @@
when: true when: true
- name: Get GPU node hostnames - name: Get GPU node hostnames
shell: |- shell: |-
kubectl get nodes --no-headers -o custom-columns=NAME:.metadata.name | grep gpu kubectl get nodes --no-headers -o custom-columns=NAME:.metadata.name | grep -- -gpu-
register: gpu_nodes register: gpu_nodes
changed_when: true changed_when: false
failed_when: gpu_nodes.rc != 0 and gpu_nodes.rc != 1
when: true when: true
- name: Print GPU node hostnames - name: Print GPU node hostnames
debug: debug:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment