Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Commit 61a3e11

Browse files
committed
fix: ioutil deprecation
Signed-off-by: Bence Csati <[email protected]>
1 parent 710c1ec commit 61a3e11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/configreloader/configreloader.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ import (
55
"flag"
66
"fmt"
77
"io"
8-
"io/ioutil"
98
"log"
109
"net/http"
1110
"os"
1211
"path/filepath"
1312
"strconv"
1413
"time"
1514

16-
fsnotify "github.com/fsnotify/fsnotify"
1715
"github.com/banzaicloud/config-reloader/pkg/metrics"
16+
fsnotify "github.com/fsnotify/fsnotify"
1817
)
1918

2019
func New() (*ConfigReloader, error) {
@@ -236,7 +235,7 @@ func (cfg *ConfigReloader) unarchiveDir(path string) error {
236235
// fmt.Println(path)
237236
// kuberPath := path + "/..data"
238237
// fmt.Println(kuberPath)
239-
files, err := ioutil.ReadDir(path)
238+
files, err := os.ReadDir(path)
240239
if err != nil {
241240
return err
242241
}

0 commit comments

Comments
 (0)