Open joh-ku opened 3 months ago
This is not well documented but the cache is deleted on force
: bastille destroy force 14.0-RELEASE
.
@foudfou correct, there is a force flag. Thanks for pointing this out!
The question for me is, if an additional flag is required at all and hence, if "destroy" should delete the release and cache directories all together. Pulling the image again is cheap anyway.
Pulling the image is not so cheap to be honest (minutes) compared to creating a release from the cache (seconds). Plus upstream might not have the locally destroyed release anymore (although subsequent jails could be hard to use).
That said, I would also expect destroying a release to also clean up the cache and have amend the PR accordingly.
Well, not as cheap as serving it from the cache, agreed. Thank you for the PR! I think the behavior is clearer now.
@cedwards what do you think the desired action is here?? Isn't the way itworks not destroying cache the designed way, or should it be changed? Don't want to make changes without your input.
[MANDATORY] Describe the bug [MANDATORY] When running
bastille destroy RELEASE
(ZFS) the corresponding cache directory remains untouched.[MANDATORY] Bastille and FreeBSD version (paste
bastille -v && freebsd-version -kru
output) 0.10.20231125 14.1-RELEASE-p3 14.1-RELEASE-p3 14.1-RELEASE-p3[MANDATORY] How did you install bastille? (port/pkg/git) pkg
[optional] Steps to reproduce?
bastille destroy 14.0-RELEASE
(or any release version you may want to destroy)[optional] Expected behavior When a release is destroyed, its corresponding cache directory should be deleted as well.