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

Refactor: Extract ParseIDMap func to idtools package #236

Merged
merged 1 commit into from
Nov 12, 2018

Conversation

isimluk
Copy link
Contributor

@isimluk isimluk commented Nov 10, 2018

where it belongs.

I have noticed that this parsing gets spread across projects. For instance note
that buildah bundles the same method in utils. We better start re-using this
code from single place.

Signed-off-by: Šimon Lukašík [email protected]

@isimluk isimluk force-pushed the extract-idmap-parser branch from c346f41 to f07f3c6 Compare November 10, 2018 16:53
where it belongs.

I have noticed that this parsing gets spread across projects. Basically, the
very same method is present in libpod, buildah, and cri-o projects. We better
start re-using this code from single place or soon everyone has its own version.

Signed-off-by: Šimon Lukašík <[email protected]>
@isimluk isimluk force-pushed the extract-idmap-parser branch from f07f3c6 to 7b209d3 Compare November 10, 2018 16:55
@rhatdan
Copy link
Member

rhatdan commented Nov 11, 2018

LGTM,
@nalind @giuseppe @vrothberg @mtrmac PTAL
@isimluk Once this gets in, will you open PRs for the other projects to use the code?

@isimluk
Copy link
Contributor Author

isimluk commented Nov 11, 2018

@isimluk Once this gets in, will you open PRs for the other projects to use the code?

Of course, Happy to do that.

@TomSweeneyRedHat
Copy link
Member

LGTM, very nice bit of code clean up @isimluk

@giuseppe
Copy link
Member

LGTM

@rhatdan rhatdan merged commit 5235ded into containers:master Nov 12, 2018
isimluk added a commit to isimluk/libpod that referenced this pull request Dec 23, 2018
ParseIDMap function was extracted to idtools in

    containers/storage#236

it is already used in containers/storage and buildah, it should be used in
libpod as well.

Signed-off-by: Šimon Lukašík <[email protected]>
isimluk added a commit to isimluk/libpod that referenced this pull request Dec 23, 2018
ParseIDMap function was extracted to idtools in

    containers/storage#236

it is already used in containers/storage and buildah, it should be used in
libpod as well.

Signed-off-by: Šimon Lukašík <[email protected]>
isimluk added a commit to isimluk/cri-o that referenced this pull request Apr 7, 2019
ParseIDMap function was extracted to idtools in

    containers/storage#236

it is already used in containers/storage and buildah and libpod. Cri-o should
use the very same code as the others.

Signed-off-by: Šimon Lukašík <[email protected]>
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.

4 participants