We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fecb037 + 76d635d commit 6d19731Copy full SHA for 6d19731
pkg/docker/aux.go
@@ -29,6 +29,18 @@ func parseContainerCommandAndReturnArgs(Ctx context.Context, config commonIL.Int
29
for _, podData := range data {
30
podUID = string(podData.Pod.UID)
31
podNamespace = string(podData.Pod.Namespace)
32
+
33
+ // check if the directory exists, if not create it
34
+ dirPath := config.DataRootFolder + podData.Pod.Namespace + "-" + podUID
35
+ if _, err := os.Stat(dirPath); os.IsNotExist(err) {
36
+ err := os.MkdirAll(dirPath, os.ModePerm)
37
+ if err != nil {
38
+ log.G(Ctx).Error(err)
39
+ } else {
40
+ log.G(Ctx).Info("-- Created directory " + dirPath)
41
+ }
42
43
44
}
45
46
if container.Command == nil {
0 commit comments