修改命名规范,删除debug pod,增加挂载方案

This commit is contained in:
linxin
2023-05-04 18:29:05 +08:00
parent c78ce80834
commit bd8134ad8a
8 changed files with 497 additions and 494 deletions

View File

@@ -3,7 +3,7 @@ package main
import (
"bufio"
"bytes"
"coredump-handler/types"
"coredump-tools/types"
"fmt"
"io/ioutil"
"os"
@@ -76,7 +76,7 @@ func TestGetContainerId(t *testing.T) {
}
func TestGetImageId(t *testing.T) {
image_id, err := getImageId("1234567890abcdef", "/var/run/containerd.sock")
image_id, err := getImageName("1234567890abcdef", "/var/run/containerd.sock")
if err != nil || len(image_id) == 0 {
t.Errorf("getImageId() error = %v; want image_id != \"\"", err)
}