Skip to content

Commit

Permalink
Use path.Join when building the various folder paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ccojocar committed Jan 31, 2023
1 parent 74b5c63 commit ddc4231
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package config
import (
"errors"
"os"
"path"
"path/filepath"

"sigs.k8s.io/release-utils/env"
Expand Down Expand Up @@ -167,11 +168,11 @@ func KubeletDir() string {
// KubeletSeccompRootPath specifies the path where all kubelet seccomp
// profiles are stored.
func KubeletSeccompRootPath() string {
return KubeletDir() + "/seccomp"
return path.Join(KubeletDir() + "seccomp")
}

// ProfilesRootPath specifies the path where the operator stores seccomp
// profiles.
func ProfilesRootPath() string {
return KubeletSeccompRootPath() + "/operator"
return path.Join(KubeletSeccompRootPath() + "operator")
}

0 comments on commit ddc4231

Please sign in to comment.