2024-01-28 15:31:58 +01:00
|
|
|
package pods
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2024-01-29 16:45:51 +01:00
|
|
|
func GarbageCollector() error {
|
2024-01-28 15:31:58 +01:00
|
|
|
for {
|
2024-01-29 16:45:51 +01:00
|
|
|
err := Cleanup()
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2024-01-28 15:31:58 +01:00
|
|
|
time.Sleep(time.Minute * 10)
|
|
|
|
}
|
|
|
|
}
|