diff --git a/pkg/cache/ondisk.go b/pkg/cache/ondisk.go index 9186879..31b69ec 100644 --- a/pkg/cache/ondisk.go +++ b/pkg/cache/ondisk.go @@ -36,6 +36,7 @@ func (c *onDisk) Get(resourceKind, resourceAPIVersion, k8sVersion string) (inter if err != nil { return nil, err } + defer f.Close() return io.ReadAll(f) }