Skip to content
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

Implement and use try_from for DiskConfig #8582

Merged

Conversation

amshinde
Copy link
Member

@amshinde amshinde commented Dec 5, 2023

Implement try_from trait function to convert runtime-rs BlockConfig to cloud-hypervisor DiskConfig. This can allow for code reuse in the future.

Fixes: #8581

@katacontainersbot katacontainersbot added the size/small Small and simple task label Dec 5, 2023
@amshinde
Copy link
Member Author

amshinde commented Dec 5, 2023

/test

Copy link
Contributor

@cmaf cmaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @amshinde, LGTM

Copy link
Contributor

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @amshinde.

lgtm

@amshinde
Copy link
Member Author

amshinde commented Dec 6, 2023

/test

Implement try_from trait function to convert runtime-rs BlockConfig
to cloud-hypervisor DiskConfig. This can allow for code reuse in the
future.

Fixes: kata-containers#8581

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
@amshinde
Copy link
Member Author

amshinde commented Dec 6, 2023

/test

@amshinde amshinde merged commit a5105b4 into kata-containers:main Dec 7, 2023
167 of 175 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test size/small Small and simple task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

runtime-rs: Implement and use try_from for DiskConfig
5 participants