Closed edevosc2c closed 3 months ago
It can be possible that the datadir folder is already populated, but the initcontainer is restarted.
So with the current logic, the initcontainer will fail as the emptyDir is not emptied before the container starts again.
Here is the error:
fatal: destination path '/etc/datahub' already exists and is not an empty directory.
We should add a logic before the clone that removes the directory before the git clone.
It can be possible that the datadir folder is already populated, but the initcontainer is restarted.
So with the current logic, the initcontainer will fail as the emptyDir is not emptied before the container starts again.
Here is the error:
We should add a logic before the clone that removes the directory before the git clone.