How to pass postgresql initdb arguments

How can we pass the parameters to be used when initializing PostgreSQL?

E.g. when using docker PostgreSQL image I set the environment variable POSTGRES_INITDB_ARGS to the options I need to set and these are used with “initdb” command. However, when I set this for the stolon-keeper kubernetes pod, the environment variable does not seem to be used with initdb?
I can pass “pgParameters” with stolonctl init command and that does modify postgresql.conf file to add my parameters, but it is not used as parameter with initdb command. Is there any way to do this?

You can only set some options for initdb: stolon/ at master · sorintlab/stolon · GitHub