Skip to content

Commit 4e33203

Browse files
added support for xdqp
1 parent 4a03482 commit 4e33203

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

charts/templates/statefulset.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ spec:
4343
log "Error: [initContainer] Bootstrap host $MARKLOGIC_BOOTSTRAP_HOST not found, exiting Init container."
4444
exit 1
4545
fi
46-
GROUP_CFG_TEMPLATE='{"group-name":"%s"}'
47-
GROUP_CFG=$(printf "$GROUP_CFG_TEMPLATE" "$MARKLOGIC_GROUP")
46+
GROUP_CFG_TEMPLATE='{"group-name":"%s", "xdqp-ssl-enabled":"%s"}'
47+
GROUP_CFG=$(printf "$GROUP_CFG_TEMPLATE" "$MARKLOGIC_GROUP" "$XDQP_SSL_ENABLED")
48+
log "Info: [initContainer] GROUP_CFG: $GROUP_CFG"
4849
GROUP_RESP_CODE=`curl --anyauth -m 20 -s -o /dev/null -w "%{http_code}" -X GET http://${MARKLOGIC_BOOTSTRAP_HOST}:8002/manage/v2/groups/${MARKLOGIC_GROUP} --anyauth --user ${MARKLOGIC_ADMIN_USERNAME}:${MARKLOGIC_ADMIN_PASSWORD}`
4950
if [[ ${GROUP_RESP_CODE} -eq 200 ]]; then
5051
log "Info: [initContainer] Skipping creation of group $MARKLOGIC_GROUP as it already exists on the MarkLogic cluster."
@@ -66,6 +67,8 @@ spec:
6667
env:
6768
- name: MARKLOGIC_GROUP
6869
value: {{ .Values.group.name }}
70+
- name: XDQP_SSL_ENABLED
71+
value: {{ .Values.group.enableXdqpSsl }}
6972
- name: MARKLOGIC_ADMIN_USERNAME
7073
valueFrom:
7174
secretKeyRef:

charts/values.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ terminationGracePeriod: 120
1010
group:
1111
# the group name of the current Marklogic Helm Deployment
1212
name: Default
13+
# xdqp encryption for intra cluster network traffic
14+
enableXdqpSsl: true
1315

1416
# The name of the host to join. If not provided, the deployment is a bootstrap host.
1517
bootstrapHostName: ""
1618

17-
1819
# Marklogic image parameters
1920
image:
20-
repository: marklogicdb/marklogic-db
21-
tag: latest
21+
repository: marklogic-centos/marklogic-server-centos
22+
tag: '20220914'
2223
pullPolicy: IfNotPresent
2324

2425
# Init container image parameters

0 commit comments

Comments
 (0)