georchestra / helm-georchestra

geOrchestra helm chart
3 stars 5 forks source link

handle case when datadir is somewhat already populated #81

Closed edevosc2c closed 3 months ago

edevosc2c commented 4 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.