Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add command to openldap container #194

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
16 changes: 15 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,21 @@ containerSecurityContext:
existingConfigmap:
## @param command Override default container command (useful when using custom images)
##
command: []
command:
- sh
- -c
- |
host=$(hostname)
case "$host" in
*"-0")
echo "This is the first openldap pod so let's init all additional schemas and ldifs here" ;;
*)
echo "This is not the first openldap pod so let's not init anything"
unset LDAP_CONFIGURE_PPOLICY LDAP_PPOLICY_HASH_CLEARTEXT
export LDAP_SKIP_DEFAULT_TREE=yes ;;
esac

exec /opt/bitnami/scripts/openldap/entrypoint.sh
## @param args Override default container args (useful when using custom images)
##
args: []
Expand Down