Commit 87f1fde
WIP: adapt implementation to new API
The structured parameter allocation logic was written from scratch in
staging/src/k8s.io/dynamic-resource-allocation/structured. Besides the new
features (amount, admin access) and API it now supports backtracking when the
initial device selection doesn't lead to a complete allocation of all claims.
"make" works. A local cluster comes up and can run the DRA E2E tests.
pkg/scheduler/framework/plugins/dynamicresources unit tests pass.
test/integration/scheduler_perf unit tests pass for DRA.
Many other unit tests haven't been adapted yet and coverage of new code is
poor.
DRA: use VAP to control "admin access" permissions
The advantages of using a validation admission policy (VAP) are that no changes
are needed in Kubernetes and that admins have full flexibility if and how they
want to control which users are allowed to use "admin access" in their
requests.
The downside is that without admins taking actions, the feature is enabled
out-of-the-box in a cluster. Documentation for DRA will have to make it very
clear that something needs to be done in multi-tenant clusters.
The test/e2e/testing-manifests/dra/admin-access-policy.yaml shows how to do
this. The corresponding E2E tests ensures that it actually works as intended.
For some reason, adding the namespace to the message expression leads to a
type check errors, so it's currently commented out.
DRA kubelet: always call NodePrepareResources, even if not used
This could be useful for drivers where that call has some effect other than
injecting CDI device IDs into containers.
DRA: remove obsolete support for deterministic claim name
Now only the claim name as recorded in the pod status matters, which can be
looked up without listing claims.
DRA kubelet: extend and clean up logging
Because of a faulty E2E test, kubelet was told to contact the wrong driver for
a claim. This was not visible in the kubelet log output. Now changes to the
claim info cache are getting logged. While at it, naming of variables and some
existing log output gets harmonized.
Co-authored-by: Ed Bartosh <eduard.bartosh@intel.com>
Co-authored-by: Oksana Baranova <oksana.baranova@intel.com>1 parent c10ca9f commit 87f1fde
File tree
73 files changed
+3996
-5911
lines changed- pkg
- controller/resourceclaim
- kubelet/cm
- devicemanager
- dra
- plugin
- state
- printers/internalversion
- registry/resource
- deviceclass/storage
- resourceclaimtemplate
- storage
- resourceclaim
- storage
- resourceslice
- storage
- scheduler
- framework
- plugins/dynamicresources
- structured/namedresources
- testing
- plugin/pkg
- admission/noderestriction
- auth/authorizer/node
- staging/src/k8s.io
- dynamic-resource-allocation
- cel
- controller
- kubeletplugin
- resourceclaim
- resourceslice
- structured
- kubelet/pkg/apis/dra/v1alpha4
- test
- e2e_node
- e2e/dra
- test-driver
- app
- deploy/example
- integration
- auth
- scheduler_perf
- config
- dra
- scheduler
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
73 files changed
+3996
-5911
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
532 | 537 | | |
533 | 538 | | |
534 | 539 | | |
| |||
547 | 552 | | |
548 | 553 | | |
549 | 554 | | |
550 | | - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
551 | 561 | | |
552 | 562 | | |
553 | 563 | | |
| |||
606 | 616 | | |
607 | 617 | | |
608 | 618 | | |
609 | | - | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
610 | 625 | | |
611 | 626 | | |
612 | 627 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | 663 | | |
668 | 664 | | |
669 | 665 | | |
| |||
968 | 964 | | |
969 | 965 | | |
970 | 966 | | |
971 | | - | |
| 967 | + | |
972 | 968 | | |
973 | | - | |
974 | | - | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
975 | 973 | | |
976 | 974 | | |
977 | 975 | | |
978 | 976 | | |
979 | | - | |
| 977 | + | |
| 978 | + | |
980 | 979 | | |
981 | 980 | | |
982 | 981 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
444 | 443 | | |
445 | 444 | | |
446 | 445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 35 | + | |
40 | 36 | | |
41 | 37 | | |
42 | 38 | | |
| |||
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 46 | + | |
| 47 | + | |
59 | 48 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
68 | 62 | | |
69 | 63 | | |
70 | 64 | | |
71 | | - | |
72 | 65 | | |
73 | 66 | | |
74 | | - | |
| 67 | + | |
75 | 68 | | |
76 | 69 | | |
77 | 70 | | |
78 | 71 | | |
79 | 72 | | |
80 | 73 | | |
81 | | - | |
82 | 74 | | |
83 | 75 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | 76 | | |
89 | 77 | | |
90 | 78 | | |
91 | 79 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
107 | 83 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
131 | 87 | | |
132 | | - | |
| 88 | + | |
| 89 | + | |
133 | 90 | | |
134 | 91 | | |
135 | 92 | | |
| |||
0 commit comments