Skip to content

Commit ccda028

Browse files
author
rwinieski
committed
use res_code for both curl commands into InitContainer
1 parent 1f3872d commit ccda028

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

charts/templates/statefulset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ spec:
5959
exit 1
6060
fi
6161
log "Info: [initContainer] Group $MARKLOGIC_GROUP has been created, configuring App-server App-Services in group $MARKLOGIC_GROUP on the MarkLogic cluster."
62-
res_code2=`curl --retry 10 --retry-all-errors --retry-max-time 60 --anyauth --user ${MARKLOGIC_ADMIN_USERNAME}:${MARKLOGIC_ADMIN_PASSWORD} -m 20 -s -w '%{http_code}' -X POST -d '{"server-name":"App-Services", "root":"/", "port":8000,"modules-database":"Modules", "content-database":"Documents", "error-handler":"/MarkLogic/rest-api/8000-error-handler.xqy", "url-rewriter":"/MarkLogic/rest-api/8000-rewriter.xml"}' -H "Content-type: application/json" "http://${MARKLOGIC_BOOTSTRAP_HOST}:8002/manage/v2/servers?group-id=${MARKLOGIC_GROUP}&server-type=http"`
63-
if [[ ${res_code2} -eq 201 ]]; then
62+
res_code=`curl --retry 10 --retry-all-errors --retry-max-time 60 --anyauth --user ${MARKLOGIC_ADMIN_USERNAME}:${MARKLOGIC_ADMIN_PASSWORD} -m 20 -s -w '%{http_code}' -X POST -d '{"server-name":"App-Services", "root":"/", "port":8000,"modules-database":"Modules", "content-database":"Documents", "error-handler":"/MarkLogic/rest-api/8000-error-handler.xqy", "url-rewriter":"/MarkLogic/rest-api/8000-rewriter.xml"}' -H "Content-type: application/json" "http://${MARKLOGIC_BOOTSTRAP_HOST}:8002/manage/v2/servers?group-id=${MARKLOGIC_GROUP}&server-type=http"`
63+
if [[ ${res_code} -eq 201 ]]; then
6464
log "Info: [initContainer] Successfully configured App-server App-Services into group $MARKLOGIC_GROUP on the MarkLogic cluster."
6565
else
6666
log "Info: [initContainer] Expected response code 201, got $res_code"

charts/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ nodeSelector: {}
6565
# The "" storageClass will use the default storage class for your cluster. (gp2 for EKS, standard for Minikube)
6666
# If set the enabled to false, it will use EmptyDir volume
6767
persistence:
68-
enabled: true
68+
enabled: false
6969
storageClass: ""
7070
size: 10Gi
7171
annotations: {}

0 commit comments

Comments
 (0)