File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ testing.
15
15
16
16
Valid parameters are key/value string pairs stored in a ConfigMap.
17
17
Those get copied into the ResourceClaimStatus with "user_ " and "admin_ " as
18
- prefix, depending on whether they came from the ResourceClaim or ResourceClass .
18
+ prefix, depending on whether they came from the ResourceClaim or DeviceClass .
19
19
They get stored in the ` ResourceHandle ` field as JSON map by the controller.
20
20
The kubelet plugin then sets these attributes as environment variables in each
21
21
container that uses the resource.
@@ -71,7 +71,7 @@ KUBECONFIG=/var/run/kubernetes/admin.kubeconfig go run ./test/e2e/dra/test-drive
71
71
And finally:
72
72
``` console
73
73
$ export KUBECONFIG=/var/run/kubernetes/admin.kubeconfig
74
- $ kubectl create -f test/e2e/dra/test-driver/deploy/example/resourceclass .yaml
74
+ $ kubectl create -f test/e2e/dra/test-driver/deploy/example/deviceclass .yaml
75
75
resourceclass/example created
76
76
$ kubectl create -f test/e2e/dra/test-driver/deploy/example/pod-inline.yaml
77
77
configmap/pause-claim-parameters created
Original file line number Diff line number Diff line change @@ -24,13 +24,14 @@ spec:
24
24
containers :
25
25
- name : with-resource
26
26
image : registry.k8s.io/e2e-test-images/busybox:1.36.1-1
27
- command : ["sh", "-c", "set && mount && ls -la /dev/"]
27
+ command : ["sh", "-c", "set && mount && ls -la /dev/ && sleep 10000 "]
28
28
resources :
29
29
claims :
30
30
- name : resource
31
31
- name : without-resource
32
32
image : registry.k8s.io/e2e-test-images/busybox:1.36.1-1
33
- command : ["sh", "-c", "set && mount && ls -la /dev/"]
33
+ command : ["sh", "-c", "set && mount && ls -la /dev/ && sleep 10000"]
34
+ terminationGracePeriodSeconds : 0 # Shut down immediately.
34
35
resourceClaims :
35
36
- name : resource
36
37
resourceClaimName : external-claim
Original file line number Diff line number Diff line change @@ -29,13 +29,14 @@ spec:
29
29
containers :
30
30
- name : with-resource
31
31
image : registry.k8s.io/e2e-test-images/busybox:1.36.1-1
32
- command : ["sh", "-c", "set && mount && ls -la /dev/"]
32
+ command : ["sh", "-c", "set && mount && ls -la /dev/ && sleep 10000 "]
33
33
resources :
34
34
claims :
35
35
- name : resource
36
36
- name : without-resource
37
37
image : registry.k8s.io/e2e-test-images/busybox:1.36.1-1
38
- command : ["sh", "-c", "set && mount && ls -la /dev/"]
38
+ command : ["sh", "-c", "set && mount && ls -la /dev/ && sleep 10000"]
39
+ terminationGracePeriodSeconds : 0 # Shut down immediately.
39
40
resourceClaims :
40
41
- name : resource
41
42
resourceClaimTemplateName : test-inline-claim-template
You can’t perform that action at this time.
0 commit comments