You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
no warning !
and normaly the massage must be ERR and not WARN!
Actual Behavior
when start convertion : WARN Failed to check if the directory is empty: open data: no such file or directory
the directory is not empty, it's containt only one sub directory.
i think the problem is in the function checkIsEmptyDir.
they try to recurse the filePath... they found in first a directory data...
but when call recursively checkIsEmptyDir the use relative name data, not the absolute name /data/mydir/data...
they break on first os.ReadDir... but is normal because they try to check data in place of /data/mydir/data.
Expected Behavior
no warning !
and normaly the massage must be ERR and not WARN!
Actual Behavior
when start convertion : WARN Failed to check if the directory is empty: open data: no such file or directory
the directory is not empty, it's containt only one sub directory.
Steps To Reproduce
the /data/mydir is directory, and contain only one subdir... and /data is directory... and the sub directory containe multiple file...
Kompose Version
Docker-Compose file
Anything else?
i think the problem is in the function
checkIsEmptyDir
.they try to recurse the filePath... they found in first a directory
data
...but when call recursively
checkIsEmptyDir
the use relative namedata
, not the absolute name/data/mydir/data
...they break on first os.ReadDir... but is normal because they try to check
data
in place of/data/mydir/data
.kompose/pkg/transformer/kubernetes/k8sutils.go
Lines 1265 to 1284 in 9532cee
The text was updated successfully, but these errors were encountered: