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

Simplified 'list' command code #122

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

adrianreber
Copy link
Member

The code for the 'list' command introduced code which already existed in the repository. This commit re-uses existing code.

Also, this extends the 'list' command to get the information from checkpoints created by containerd.

This also changes how the 'list' command works. Before it was always using '/var/lib/kubelet/checkpoints/' to look for checkpoints and '-p' extended the search path. Now 'checkpoint list' looks in the default location and 'checkpoint list /tmp /etc' only looks in '/tmp/' and '/etc', but no longer in the default location. Always looking in the default location broke local tests for me.

I am combining tests and code changes in a single commit as the changes are breaking the tests.

@Parthiba-Hazra The main reason I did the changes was that the information was not correctly displayed for the checkpoint archives as created by containerd.

The code for the 'list' command introduced code which already existed in
the repository. This commit re-uses existing code.

Also, this extends the 'list' command to get the information from
checkpoints created by containerd.

This also changes how the 'list' command works. Before it was always
using '/var/lib/kubelet/checkpoints/' to look for checkpoints and '-p'
extended the search path. Now 'checkpoint list' looks in the default
location and 'checkpoint list /tmp /etc' only looks in '/tmp/' and
'/etc', but no longer in the default location. Always looking in the
default location broke local tests for me.

Signed-off-by: Adrian Reber <[email protected]>
Copy link

github-actions bot commented Mar 6, 2024

Test Results

55 tests  ±0   55 ✅ ±0   1s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit cfe937c. ± Comparison against base commit 9acc48e.

Copy link
Member

@rst0git rst0git left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks Adrian!

@rst0git rst0git merged commit 0fa3333 into checkpoint-restore:main Mar 6, 2024
10 checks passed
@adrianreber adrianreber deleted the 2024-03-06-list branch March 6, 2024 13:45
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