Skip to content

Commit 66fd83c

Browse files
committed
Fix test failure issue
1 parent a575b44 commit 66fd83c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

charts/templates/statefulset.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,15 @@ spec:
148148
log "Info: [poststart] This is not a bootstrap host or group specified is Default"
149149
else
150150
while [ ! -f /var/opt/MarkLogic/ready ]; do
151+
log "[poststart] wait for marklogic server to be ready"
151152
sleep 5s
152153
done
153-
154+
sleep 10s
154155
GROUP_CFG_TEMPLATE='{"group-name":"%s", "xdqp-ssl-enabled":"%s"}'
155156
GROUP_CFG=$(printf "$GROUP_CFG_TEMPLATE" "$MARKLOGIC_GROUP" "$XDQP_SSL_ENABLED")
156-
157-
log "Info: [poststart] Updating Default group on cluster"
158-
curl --anyauth -m 20 -s -X PUT -H "Content-type: application/json" -d "${GROUP_CFG}" http://${MARKLOGIC_BOOTSTRAP_HOST}:8002/manage/v2/groups/Default/properties --user ${MARKLOGIC_ADMIN_USERNAME}:${MARKLOGIC_ADMIN_PASSWORD}
159-
sleep 10s
157+
log "Info: [poststart] Updating group configuration: ${GROUP_CFG}"
158+
curl --anyauth -m 20 -X PUT -H "Content-type: application/json" -d "${GROUP_CFG}" http://${MARKLOGIC_BOOTSTRAP_HOST}:8002/manage/v2/groups/Default/properties --user ${MARKLOGIC_ADMIN_USERNAME}:${MARKLOGIC_ADMIN_PASSWORD}
159+
sleep 2s
160160
fi
161161
log "Info: [poststart] Poststart Hook Execution Completed"
162162
{{- end }}

0 commit comments

Comments
 (0)