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.
1 parent 0fe3547 commit 76d635dCopy full SHA for 76d635d
pkg/docker/aux.go
@@ -31,6 +31,18 @@ func parseContainerCommandAndReturnArgs(Ctx context.Context, config commonIL.Int
31
for _, podData := range data {
32
podUID = string(podData.Pod.UID)
33
podNamespace = string(podData.Pod.Namespace)
34
+
35
+ // check if the directory exists, if not create it
36
+ dirPath := config.DataRootFolder + podData.Pod.Namespace + "-" + podUID
37
+ if _, err := os.Stat(dirPath); os.IsNotExist(err) {
38
+ err := os.MkdirAll(dirPath, os.ModePerm)
39
+ if err != nil {
40
+ log.G(Ctx).Error(err)
41
+ } else {
42
+ log.G(Ctx).Info("-- Created directory " + dirPath)
43
+ }
44
45
46
}
47
48
if container.Command == nil {
0 commit comments