Merge pull request #2739 from fgiudici/kata-monitor_improvements3

kata-monitor (minor) improvements
This commit is contained in:
Chelsea Mafrica 2021-09-27 15:45:21 -07:00 committed by GitHub
commit 0b087a873d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -184,12 +184,12 @@ func (s *service) mountPprofHandle(m *http.ServeMux, ociSpec *specs.Spec) {
}
// GetSandboxesStoragePath returns the storage path where sandboxes info are stored
func GetSanboxesStoragePath() string {
return filepath.Join(string(filepath.Separator), "run", "vc", "sbs")
func GetSandboxesStoragePath() string {
return "/run/vc/sbs"
}
// SocketAddress returns the address of the unix domain socket for communicating with the
// shim management endpoint
func SocketAddress(id string) string {
return fmt.Sprintf("unix://%s", filepath.Join(string(filepath.Separator), GetSanboxesStoragePath(), id, "shim-monitor.sock"))
return fmt.Sprintf("unix://%s", filepath.Join(string(filepath.Separator), GetSandboxesStoragePath(), id, "shim-monitor.sock"))
}

View File

@ -40,7 +40,7 @@ func getSandboxIDFromReq(r *http.Request) (string, error) {
}
func getSandboxFS() string {
return shim.GetSanboxesStoragePath()
return shim.GetSandboxesStoragePath()
}
func checkSandboxFSExists(sandboxID string) bool {