File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,13 @@ validate_prerequisites() {
4747
4848 # Examples: v1, or v1beta1
4949 export TEST_K8S_RESOURCE_API_VERSION
50+
51+ # For resource.k8s.io API versions before v1, a ResourceClaim spec looks
52+ # slightly differently.
53+ export TEST_DEVCLASSNAME_CD_CHANNEL=$' exactly:\n deviceClassName: compute-domain-default-channel.nvidia.com'
54+ if [[ " ${TEST_K8S_RESOURCE_API_VERSION} " != " v1" ]]; then
55+ export TEST_DEVCLASSNAME_CD_CHANNEL=" deviceClassName: compute-domain-default-channel.nvidia.com"
56+ fi
5057}
5158
5259
Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ metadata:
55spec:
66 devices:
77 requests:
8- - deviceClassName: compute-domain-default-channel.nvidia.com
9- name: chan
8+ - name: chan
9+ # This part of the ResourceClainm spec changed in
10+ # resource.k8s.io/v1 compared to previous API versions.
11+ ${TEST_DEVCLASSNAME_CD_CHANNEL}
1012 config:
1113 - opaque:
1214 driver: compute-domain.nvidia.com
You can’t perform that action at this time.
0 commit comments