Helm Chart: Support Init Container for Restore and Bulk Loader

Experience Report for Feature Request

When you deploy a cluster when there is a need to sometimes populate a directory p directory with restore or bulk loader, and the optimal method to do this with an init container.

This enhancement request to allow operators to enable and specify an init container, and specify characteristics, such as configmap holding a shell script, secrets, env vars, and command line, with intelligent defaults.

What you wanted to do

helm install my-release dgraph/dgraph --alpha.initcontainer.enabled=true

What you actually did

kubectl edit my-release-dgraph-alpha-0

Why that wasn’t great, with examples

Messy, should not have to do this.

Any external references to support your case