In config validation, the gpu parametr type was specified as str rather than float. This is corrected. This was not discovered in testing because the only tests which use the gpu parameter for the other k8s drivers are not present in the openshiftpods driver. This change also adds the missing tests for the default resource and resource limits feature which exercises the gpu limits. Change-Id: Ife932acaeb5a90ebc94ad36c3b4615a4469f0c40
43 lines
991 B
YAML
43 lines
991 B
YAML
zookeeper-servers:
|
|
- host: {zookeeper_host}
|
|
port: {zookeeper_port}
|
|
chroot: {zookeeper_chroot}
|
|
|
|
zookeeper-tls:
|
|
ca: {zookeeper_ca}
|
|
cert: {zookeeper_cert}
|
|
key: {zookeeper_key}
|
|
|
|
labels:
|
|
- name: pod-default
|
|
- name: pod-custom-cpu
|
|
- name: pod-custom-mem
|
|
- name: pod-custom-storage
|
|
- name: pod-custom-gpu
|
|
|
|
providers:
|
|
- name: openshift
|
|
driver: openshiftpods
|
|
context: admin-cluster.local
|
|
pools:
|
|
- name: main
|
|
default-label-cpu: 2
|
|
default-label-memory: 1024
|
|
default-label-storage: 10
|
|
labels:
|
|
- name: pod-default
|
|
image: test
|
|
- name: pod-custom-cpu
|
|
image: test
|
|
cpu: 4
|
|
- name: pod-custom-mem
|
|
image: test
|
|
memory: 2048
|
|
- name: pod-custom-storage
|
|
image: test
|
|
storage: 20
|
|
- name: pod-custom-gpu
|
|
image: test
|
|
gpu-resource: gpu-vendor.example/example-gpu
|
|
gpu: 0.5
|