natrontech / helm-charts

Helm Charts published by Natron
Apache License 2.0
0 stars 0 forks source link

Run more commands in initContainers script #26

Open pfirpfel opened 1 year ago

pfirpfel commented 1 year ago

I want to expand this init script to run more commands:

https://github.com/natrontech/helm-charts/blob/dd752fa7d9ccc60c580f58f177f49a679c7d4234/charts/safir/templates/deployment.yaml#L71-L81

The first thing, that I want to add, is changing file permissions to make directories traversable:

find /var/www/htdocs -type d -exec chmod 755 -R {} \;

There are likely more such one-liners in the future, that I want to add. Booting up a container for each one of those just to run that line seems a bit overkill. Is there a good way to add more commands?

EDIT: If it's not that much overhead, I can of course use a separate init container per command.