diff --git a/Makefile b/Makefile index 2765549fc7d..f382c759fd3 100644 --- a/Makefile +++ b/Makefile @@ -828,6 +828,10 @@ lint: @GOOS=linux go vet ./... @GOOS=linux gosec -exclude=G204,G306,G404,G601,G301 -exclude-dir=test -exclude-dir=pkg/client ./... +.PHONY: gofumpt +gofumpt: gofumpt + find . -name "*.go" -execdir gofumpt -w -extra {}\; + .PHONY: lint-windows lint-windows: @GOOS=windows go vet ./cmd/windows/... diff --git a/pkg/daemon/handler_linux.go b/pkg/daemon/handler_linux.go index 8776acf90f4..acd1f532b66 100644 --- a/pkg/daemon/handler_linux.go +++ b/pkg/daemon/handler_linux.go @@ -42,7 +42,7 @@ func createShortSharedDir(pod *v1.Pod, volumeName, kubeletDir string) (err error mask := syscall.Umask(0) defer syscall.Umask(mask) if _, err = os.Stat(newSharedDir); os.IsNotExist(err) { - err = os.MkdirAll(newSharedDir, 0o777) + err = os.MkdirAll(newSharedDir, 0777) if err != nil { return fmt.Errorf("createSharedDir: Failed to create dir (%s): %v", newSharedDir, err) }