-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose block and character devices with play kube #14266
Expose block and character devices with play kube #14266
Conversation
/assign @mheon |
5c86313
to
b2c6eeb
Compare
[NO NEW TESTS NEEDED] Signed-off-by: Cosmin Tupangiu <[email protected]>
b2c6eeb
to
0c9b0e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing!
Did you consider writing tests? I'd love have some. Creating block and char devices should work just fine in our CI.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tupyy, vrothberg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Code LGTM. Tests would definitely be preferred though. |
I can add tests no problem. But it requires creating the actual devices with root permission. do you think it is ok for the CI pipeline? |
You will have to run only rootful tests and make sure you remove the devices when the pod completes. |
Yes, you can use |
- add test - fix bug when a character device set in a volume as a block device is seen as block device in _pkg/specgen/generate/kube/volume.go_. At this stage the type does not matter much because the devices are recreated at lower layer but the bug allowed a CharDevice volume to be passed to lower layer as a BlockDevice. Signed-off-by: Cosmin Tupangiu <[email protected]>
LGTM |
e2e tests tends to fail when running with multiple nodes because the same device folder name is used accross all nodes Signed-off-by: Cosmin Tupangiu <[email protected]>
/lgtm |
Signed-off-by: Cosmin Tupangiu <[email protected]>
Update _play kube_ doc following PR #14266 merging
Signed-off-by: Cosmin Tupangiu <[email protected]>
Is this feature the equivalent of the Because unfortunately it's not working in my specific use case |
This PR addresses issue #13951.
The aim of the PR is to be able to expose devices inside containers using
podman play kube
. The user can specify which device will be exposed usingvolumes
andvolumeMounts
in the pod manifest:Remark: The issue #13951 refers to the need to use
container device interface
withpodman play kube
. This PR is not addressing this need.Signed-off-by: Cosmin Tupangiu [email protected]