-
Notifications
You must be signed in to change notification settings - Fork 121
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
base: master
Are you sure you want to change the base?
Changes from 2 commits
312d16b
376e94b
f25cf0d
b67d654
bc93130
cceef94
0ec559f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,6 +182,22 @@ spec: | |
{{- if .Values.containerSecurityContext.enabled }} | ||
securityContext: {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }} | ||
{{- end }} | ||
command: | ||
- sh | ||
- -c | ||
- | | ||
host=$(hostname) | ||
if [ "$host" = "{{ template "openldap.fullname" . }}-0" ] | ||
then | ||
echo "This is the first openldap pod so let's init all additional schemas and ldifs here" | ||
else | ||
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 | ||
fi | ||
|
||
/opt/bitnami/scripts/openldap/entrypoint.sh /opt/bitnami/scripts/openldap/run.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is bitnami-specific and fail on custom container. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, the
That will avoid overwriting default or user-supplied args. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hey, just came back from vacation will try to resolve these issues this or next week There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
hmm (from latest commit on this PR) |
||
|
||
env: | ||
- name: POD_NAME | ||
valueFrom: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one conflicts with recently restored
command
on L177.To not overwrite user supplied
.Values.command
please move above L176 or incorporate condition block.