Skip to content

Commit 7d38726

Browse files
nervghalexey-igrychev
authored andcommitted
fix(host-cleanup): disable git data cleaning temporary
Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
1 parent 31233af commit 7d38726

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

pkg/host_cleaning/host_cleanup.go

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,19 @@ func RunHostCleanup(ctx context.Context, backend container_backend.ContainerBack
106106
return err
107107
}
108108

109-
allowedLocalCacheVolumeUsagePercentage := getOptionValueOrDefault(options.AllowedLocalCacheVolumeUsagePercentage, DefaultAllowedLocalCacheVolumeUsagePercentage)
110-
allowedLocalCacheVolumeUsageMarginPercentage := getOptionValueOrDefault(options.AllowedLocalCacheVolumeUsageMarginPercentage, DefaultAllowedLocalCacheVolumeUsageMarginPercentage)
111-
112-
if err := logboek.Context(ctx).Default().LogProcess("Running GC for git data").DoError(func() error {
113-
if err := gitdata.RunGC(ctx, allowedLocalCacheVolumeUsagePercentage, allowedLocalCacheVolumeUsageMarginPercentage); err != nil {
114-
return fmt.Errorf("git repo GC failed: %w", err)
109+
/*
110+
allowedLocalCacheVolumeUsagePercentage := getOptionValueOrDefault(options.AllowedLocalCacheVolumeUsagePercentage, DefaultAllowedLocalCacheVolumeUsagePercentage)
111+
allowedLocalCacheVolumeUsageMarginPercentage := getOptionValueOrDefault(options.AllowedLocalCacheVolumeUsageMarginPercentage, DefaultAllowedLocalCacheVolumeUsageMarginPercentage)
112+
113+
if err := logboek.Context(ctx).Default().LogProcess("Running GC for git data").DoError(func() error {
114+
if err := gitdata.RunGC(ctx, allowedLocalCacheVolumeUsagePercentage, allowedLocalCacheVolumeUsageMarginPercentage); err != nil {
115+
return fmt.Errorf("git repo GC failed: %w", err)
116+
}
117+
return nil
118+
}); err != nil {
119+
return err
115120
}
116-
return nil
117-
}); err != nil {
118-
return err
119-
}
121+
*/
120122

121123
allowedBackendStorageVolumeUsagePercentage := getOptionValueOrDefault(options.AllowedBackendStorageVolumeUsagePercentage, DefaultAllowedBackendStorageVolumeUsagePercentage)
122124
allowedBackendStorageVolumeUsageMarginPercentage := getOptionValueOrDefault(options.AllowedBackendStorageVolumeUsageMarginPercentage, DefaultAllowedBackendStorageVolumeUsageMarginPercentage)

0 commit comments

Comments
 (0)