confidential-containers / cloud-api-adaptor

Ability to create Kata pods using cloud provider APIs aka the peer-pods approach
Apache License 2.0
48 stars 88 forks source link

csi-wrapper: pass `PublishContext` from `ControllerPublishVolume` to `NodeStageVolume` #2108

Closed daniel-weisse closed 1 month ago

daniel-weisse commented 1 month ago

A CSI driver may rely on the output of ControllerPublishVolume during the NodeStageVolume call. Since the csi-wrapper simply creates a fake ControllerPublishVolumeResponse, information may be lost between the two calls. Since the peerpod volume caches the real response, we can use this during the wrapper's NodeStageVolume to supply the driver with the real values.

stevenhorsman commented 1 month ago

@yoheiueda - are you able to review this when you get a chance as I think you worked on the csi-wrapper feature?