mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Fix GCI mounter script to run garbage collection multiple times
Remove break in the mounter script to make sure gc run multiple times
This commit is contained in:
parent
2ac9c08781
commit
3a1cf2d52a
@ -31,7 +31,7 @@ function gc {
|
||||
# Rkt pods end up creating new copies of mounts on the host. Hence it is ideal to clean them up right away.
|
||||
attempt=0
|
||||
until [ $attempt -ge 5 ]; do
|
||||
${RKT_BINARY} gc --grace-period=0s &> /dev/null && break
|
||||
${RKT_BINARY} gc --grace-period=0s &> /dev/null
|
||||
attempt=$[$attempt+1]
|
||||
sleep 1
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user