Skip to content

Commit

Permalink
Merge pull request #2334 from YJDoc2/cleanup/update-updation-guide
Browse files Browse the repository at this point in the history
Update Migration Guide for 0.2.0 release
  • Loading branch information
utam0k authored Sep 1, 2023
2 parents 6b6ee3b + 7fe1687 commit 46b8860
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions MirgationGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ This contains information for migrating library versions.

- The `Rootless` struct has been re-named as `UserNamespaceConfig` , `RootlessIDMapper` has been re-named to `UserNamespaceIDMapper` , and correspondingly the `RootlessError` has been re-named to `UserNamespaceError` . This is due to the fact that the structure was to be used for containers when a new user namespace is to be created, and that is not strictly only for rootless uses. Accordingly, the fields of various structs has been updated to reflect this change :
- rootless (module name) -> user_ns
- Rootless::rootless_id_mapper -> UserNamespaceConfig::id_mapper
- Rootless.rootless_id_mapper -> UserNamespaceConfig.id_mapper
- LibcontainerError::Rootless -> LibcontainerError::UserNamespace
- ContainerBuilderImpl::rootless -> ContainerBuilderImpl::user_ns_config
- ContainerArgs::rootless -> ContainerArgs::user_ns_config

- Changes that will occur for properly running in rootless mode : TODO (@YJDoc2)
- ContainerBuilderImpl.rootless -> ContainerBuilderImpl.user_ns_config
- ContainerArgs.rootless -> ContainerArgs.user_ns_config

- Executor now contains 2 methods for implementation. We introduce a `validate` step in addition to execute. The `validate` should validate the input OCI spec. The step runs after all the namespaces are entered and rootfs is pivoted.

Expand Down

0 comments on commit 46b8860

Please sign in to comment.