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

Support namespace path or mount_label or rootfs_propagation empty in json #2544

Closed
wants to merge 1 commit into from

Conversation

Vanient
Copy link
Contributor

@Vanient Vanient commented Nov 23, 2023

If we use youki as crate, config.json maybe created by upper container engine not youki self, namespace path, apparmor_profile, mount_label or rootfs_propagation may be set to Some("") not None in config.json, but it should be treated same as None.

namespace path, mount_label, apparmorProfile or rootfs_propagation
may be set to Some("") not None, but it should be treated same as None.

Signed-off-by: Vanient <[email protected]>
@YJDoc2
Copy link
Collaborator

YJDoc2 commented Nov 23, 2023

Hey, thanks for opening this PR!
Is there any upper container engine where you have observed this case? Or does this occur when we do some specific settings only?
Also, I think a better place to handle this / at least the spec part of this would be in the oci_spec library itself, rather than in youki, wdyt?

@Vanient
Copy link
Contributor Author

Vanient commented Nov 24, 2023

Hey, thanks for opening this PR! Is there any upper container engine where you have observed this case? Or does this occur when we do some specific settings only? Also, I think a better place to handle this / at least the spec part of this would be in the oci_spec library itself, rather than in youki, wdyt?

Yes, you are right i found it should not show in json if String is "", close it.

@Vanient Vanient closed this Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants