You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"User '" + request.userInfo.username + "' on node '" + variables.userNodeName + "' is not allowed to update the .status.devices of a ResourceClaim allocated on node '" + variables.objectNodeName + "'."
[x] I/we understand the owners of the involved components may require updates to
@@ -323,6 +404,8 @@ to implement this enhancement.
323
404
* With the feature gate enabled, the field exists in the `ResourceClaim`.
324
405
* With the feature gate disabled, the field does not exist in the
325
406
`ResourceClaim`.
407
+
* With the feature gate enabled, the `ValidatingAdmissionPolicy` exists and
408
+
restricts the write access of the `ResourceClaim.Status.Devices`.
326
409
327
410
##### e2e tests
328
411
@@ -336,12 +419,12 @@ TBD
336
419
Feature Gates are disabled by default.
337
420
- Documentation provided.
338
421
- Initial unit, integration and e2e tests completed and enabled.
422
+
- Authorization implemented to allow only the user on the same node as the
423
+
allocated `ResourceClaim` to write the status of the devices.
339
424
340
425
#### Beta
341
426
342
427
- Feature Gates are enabled by default.
343
-
- Authorization implemented to allow only the driver managing the device to
344
-
write the status.
345
428
- No major outstanding bugs.
346
429
- Feedback collected from the community (developers and users) with adjustments
347
430
provided, implemented and tested.
@@ -527,7 +610,8 @@ access the corresponding `ResourceClaim` for every Pod.
527
610
528
611
An option the DRA drivers can currently use to report the status of the device
529
612
allocated in the `ResourceClaim` is the annotation of the `ResourceClaim` or of
530
-
the `Pod` itself. As a reference, the [k8snetworkplumbingwg/Multus-CNI](https://github.com/k8snetworkplumbingwg/multus-cni) project is utilizing annotation to describe the network attachments/interfaces
613
+
the `Pod` itself. As a reference, the [k8snetworkplumbingwg/Multus-CNI](https://github.com/k8snetworkplumbingwg/multus-cni)
614
+
project is utilizing annotation to describe the network attachments/interfaces
531
615
and report the status.
532
616
533
617
Here is the API below representing a network attachment. This is stored as a
@@ -555,14 +639,15 @@ type NetworkStatus struct {
555
639
As part of the [Multi-Network (KEP-3698)](https://github.com/kubernetes/enhancements/issues/3698),
556
640
the idea was to use the existing `Pod.Status.PodIPs` and save the data about the
557
641
different network interfaces/devices attached to the `Pod`. As part of the
558
-
review of the KEP, it has been indicated ([here](https://github.com/kubernetes/enhancements/pull/3700#discussion_r1501690793) and [here](https://github.com/kubernetes/kubernetes/pull/123112#issuecomment-1925957930))
642
+
review of the KEP, it has been indicated ([here](https://github.com/kubernetes/enhancements/pull/3700#discussion_r1501690793)
643
+
and [here](https://github.com/kubernetes/kubernetes/pull/123112#issuecomment-1925957930))
559
644
that it would be an API breaking change if the `Pod.Status.PodIPs` contains
560
645
more than 1 value per IP family.
561
646
562
647
### New Pod.Status Field
563
648
564
-
Still as part of the [KEP-3698 - Multi-Network](https://github.com/kubernetes/enhancements/issues/3698), and in
565
-
the continuation of the previous alternative, the idea was to add a new field
649
+
Still as part of the [KEP-3698 - Multi-Network](https://github.com/kubernetes/enhancements/issues/3698),
650
+
and in the continuation of the previous alternative, the idea was to add a new field
566
651
`Networks` in the `Pod.Status` so each networking DRA driver could report the
567
652
status for each network interface/device directly in the `Pod.Status`.
568
653
@@ -609,6 +694,13 @@ the idea was to extend the [KEP-4680 about resource health status in the
609
694
`Pod.Status`](https://github.com/kubernetes/enhancements/issues/4680) in order
610
695
to expose device information and not just the health.
611
696
697
+
### Custom Resources
698
+
699
+
In the `ResourceClaim.Status.Devices`, instead of having opaque field (`Info`) and
700
+
specific type fields, an object reference could be used for each device. The custom
701
+
object would be created and maintained by the driver to report the status of the
0 commit comments