Skip to content

Commit 026d155

Browse files
authored
Merge branch 'release/2.1.0' into MLE-21334/Remove-attributes-from-cookie
2 parents 6b29ad9 + d8d9664 commit 026d155

File tree

11 files changed

+179
-187
lines changed

11 files changed

+179
-187
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2022-2025 MarkLogic Corporation.
1+
Copyright © 2022-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.
22

33
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
44

NOTICE.txt

Lines changed: 84 additions & 87 deletions
Large diffs are not rendered by default.

charts/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ keywords:
1717
sources:
1818
- https://github.com/marklogic/marklogic-kubernetes
1919
- https://www.marklogic.com/
20-
version: 2.0.1
20+
version: 2.1.0

charts/charts/haproxy/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515

16-
Modifications copyright © 2022-2025 MarkLogic Corporation.
16+
Modifications copyright © 2022-2025 Progress Software Corporation and/or its subsidiaries or affiliates.
1717
This file is modified from the original file to support the MarkLogic Kubernetes Helm Chart.
1818
*/}}
1919

charts/charts/haproxy/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515

16-
Modifications copyright © 2022-2025 MarkLogic Corporation.
16+
Modifications copyright © 2022-2025 Progress Software Corporation and/or its subsidiaries or affiliates.
1717
This file is modified from the original file to support the MarkLogic Kubernetes Helm Chart.
1818
*/}}
1919

charts/charts/haproxy/templates/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515

16-
Modifications copyright © 2022-2025 MarkLogic Corporation.
16+
Modifications copyright © 2022-2025 Progress Software Corporation and/or its subsidiaries or affiliates.
1717
This file is modified from the original file to support the MarkLogic Kubernetes Helm Chart.
1818
*/}}
1919

charts/charts/haproxy/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
#
15-
# Modifications copyright © 2022-2025 MarkLogic Corporation.
15+
# Modifications copyright © 2022-2025 Progress Software Corporation and/or its subsidiaries or affiliates.
1616
# This file is modified from the original file to support the MarkLogic Kubernetes Helm Chart.
1717

1818
## Default values for HAProxy

charts/templates/configmap-scripts.yaml

Lines changed: 3 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# This configMap contains scirpts for MarkLogic Helm Chart:
2-
# liveness-probe.sh
32
# copy-certs.sh
43
# prestop-hook.sh
54
# poststart-hook.sh
@@ -8,41 +7,6 @@ kind: ConfigMap
87
metadata:
98
name: {{ include "marklogic.fullname" . }}-scripts
109
data:
11-
liveness-probe.sh: |
12-
#!/bin/bash
13-
pid=$(ps aux | grep "/bin/bash /usr/local/bin/start-marklogic.sh" | grep -v grep | awk '{print $2}')
14-
log () {
15-
local TIMESTAMP=$(date +"%Y-%m-%d %T.%3N")
16-
# Check to make sure pod doesn't terminate if PID value is empty for any reason
17-
if [ -n "$pid" ]; then
18-
echo "${TIMESTAMP} $@" > /proc/$pid/fd/1
19-
fi
20-
}
21-
22-
# Check if ML service is running. Exit with 1 if it is other than running
23-
if [ -e /etc/init.d/MarkLogic ]; then
24-
ml_status=$(/etc/init.d/MarkLogic status)
25-
else
26-
ml_status=$(/etc/MarkLogic/MarkLogic-service.sh status)
27-
fi
28-
29-
if [[ "$ml_status" =~ "running" ]]; then
30-
http_code=$(curl -o /tmp/probe_response.txt -s -w "%{http_code}" "http://${HOSTNAME}:8001/admin/v1/timestamp")
31-
curl_code=$?
32-
http_resp=$(cat /tmp/probe_response.txt)
33-
34-
if [[ $curl_code -ne 0 && $http_code -ne 401 ]]; then
35-
log "Info: [Liveness Probe] Error with MarkLogic"
36-
log "Info: [Liveness Probe] Curl response code: "$curl_code
37-
log "Info: [Liveness Probe] Http response code: "$http_code
38-
log "Info: [Liveness Probe] Http response message: "$http_resp
39-
fi
40-
rm -f /tmp/probe_response.txt
41-
exit 0
42-
else
43-
exit 1
44-
fi
45-
4610
copy-certs.sh: |
4711
#!/bin/bash
4812
MARKLOGIC_ADMIN_USERNAME="$(< /run/secrets/ml-secrets/username)"
@@ -118,15 +82,9 @@ data:
11882
MARKLOGIC_ADMIN_USERNAME="$(< /run/secrets/ml-secrets/username)"
11983
MARKLOGIC_ADMIN_PASSWORD="$(< /run/secrets/ml-secrets/password)"
12084
121-
pid=$(ps aux | grep "/bin/bash /usr/local/bin/start-marklogic.sh" | grep -v grep | awk '{print $2}')
122-
12385
log () {
12486
local TIMESTAMP=$(date +"%Y-%m-%d %T.%3N")
125-
# Check to make sure pod doesn't terminate if PID value is empty for any reason
126-
# If PID value is empty preStart hook logs are not recorded
127-
if [ -n "$pid" ]; then
128-
echo "${TIMESTAMP} $@" > /proc/$pid/fd/1
129-
fi
87+
echo "${TIMESTAMP} $@" > /proc/1/fd/1
13088
}
13189
13290
log "Info: [prestop] Prestop Hook Execution"
@@ -195,8 +153,6 @@ data:
195153
echo "IS_BOOTSTRAP_HOST false"
196154
fi
197155
198-
pid=$(ps aux | grep "/bin/bash /usr/local/bin/start-marklogic.sh" | grep -v grep | awk '{print $2}')
199-
200156
###############################################################
201157
# Logging utility
202158
###############################################################
@@ -215,13 +171,8 @@ data:
215171
216172
log () {
217173
local TIMESTAMP=$(date +"%Y-%m-%d %T.%3N")
218-
# Check to make sure pod doesn't terminate if PID value is empty for any reason
219-
# If PID value is empty postStart hook logs are not recorded
220174
message="${TIMESTAMP} [postStart] $@"
221-
if [ -n "$pid" ]; then
222-
echo $message > /proc/$pid/fd/1
223-
fi
224-
175+
echo $message > /proc/1/fd/1
225176
echo $message >> /tmp/script.log
226177
}
227178
@@ -889,13 +840,8 @@ data:
889840
#!/bin/bash
890841
log () {
891842
local TIMESTAMP=$(date +"%Y-%m-%d %T.%3N")
892-
# Check to make sure pod doesn't terminate if PID value is empty for any reason
893-
if [ -n "$pid" ]; then
894-
echo "${TIMESTAMP} $@" > /proc/$pid/fd/1
895-
fi
843+
echo "${TIMESTAMP} $@" > /proc/1/fd/1
896844
}
897-
898-
pid=$(ps aux | grep "/bin/bash /usr/local/bin/start-marklogic.sh" | grep -v grep | awk '{print $2}')
899845
900846
log "Info: [root-rootless-upgrade] Execution Start"
901847

charts/templates/statefulset.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,8 @@ spec:
200200
{{- end }}
201201
{{- if .Values.livenessProbe.enabled }}
202202
livenessProbe:
203-
exec:
204-
command:
205-
- /bin/bash
206-
- /tmp/helm-scripts/liveness-probe.sh
203+
tcpSocket:
204+
port: 8001
207205
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
208206
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
209207
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}

go.mod

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/marklogic/marklogic-kubernetes
33
go 1.23.6
44

55
require (
6-
github.com/docker/docker v24.0.7+incompatible
6+
github.com/docker/docker v28.0.4+incompatible
77
github.com/gruntwork-io/terratest v0.48.2
88
github.com/imroc/req/v3 v3.50.0
99
github.com/stretchr/testify v1.10.0
@@ -16,7 +16,6 @@ require (
1616
github.com/Microsoft/go-winio v0.4.14 // indirect
1717
github.com/andybalholm/brotli v1.1.1 // indirect
1818
github.com/cloudflare/circl v1.5.0 // indirect
19-
github.com/docker/distribution v2.8.2+incompatible // indirect
2019
github.com/docker/go-connections v0.5.0 // indirect
2120
github.com/docker/go-units v0.5.0 // indirect
2221
github.com/emicklei/go-restful/v3 v3.11.2 // indirect
@@ -58,7 +57,7 @@ require (
5857
github.com/xrash/smetrics v0.0.0-20231213231151-1d8dd44e695e // indirect
5958
golang.org/x/exp v0.0.0-20241215155358-4a5509556b9e // indirect
6059
golang.org/x/mod v0.22.0 // indirect
61-
golang.org/x/sync v0.10.0 // indirect
60+
golang.org/x/sync v0.11.0 // indirect
6261
golang.org/x/tools v0.28.0 // indirect
6362
)
6463

@@ -101,11 +100,15 @@ require (
101100
github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 // indirect
102101
github.com/aws/smithy-go v1.22.1 // indirect
103102
github.com/boombuler/barcode v1.0.1 // indirect
103+
github.com/containerd/log v0.1.0 // indirect
104104
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
105105
github.com/davecgh/go-spew v1.1.1 // indirect
106+
github.com/distribution/reference v0.6.0 // indirect
107+
github.com/felixge/httpsnoop v1.0.4 // indirect
106108
github.com/ghodss/yaml v1.0.0 // indirect
107109
github.com/go-errors/errors v1.5.1 // indirect
108110
github.com/go-logr/logr v1.4.2 // indirect
111+
github.com/go-logr/stdr v1.2.2 // indirect
109112
github.com/go-sql-driver/mysql v1.8.1 // indirect
110113
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
111114
github.com/gogo/protobuf v1.3.2 // indirect
@@ -124,6 +127,7 @@ require (
124127
github.com/json-iterator/go v1.1.12 // indirect
125128
github.com/mattn/go-zglob v0.0.4 // indirect
126129
github.com/mitchellh/go-homedir v1.1.0 // indirect
130+
github.com/moby/docker-image-spec v1.3.1 // indirect
127131
github.com/moby/spdystream v0.2.0 // indirect
128132
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
129133
github.com/modern-go/reflect2 v1.0.2 // indirect
@@ -133,15 +137,22 @@ require (
133137
github.com/spf13/pflag v1.0.5 // indirect
134138
github.com/tidwall/match v1.1.1 // indirect
135139
github.com/tidwall/pretty v1.2.0 // indirect
140+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
141+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
142+
go.opentelemetry.io/otel v1.35.0 // indirect
143+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.35.0 // indirect
144+
go.opentelemetry.io/otel/metric v1.35.0 // indirect
145+
go.opentelemetry.io/otel/sdk v1.35.0 // indirect
146+
go.opentelemetry.io/otel/trace v1.35.0 // indirect
136147
go.uber.org/mock v0.5.0 // indirect
137-
golang.org/x/crypto v0.32.0 // indirect
138-
golang.org/x/net v0.34.0 // indirect
148+
golang.org/x/crypto v0.33.0 // indirect
149+
golang.org/x/net v0.35.0 // indirect
139150
golang.org/x/oauth2 v0.24.0 // indirect
140-
golang.org/x/sys v0.29.0 // indirect
141-
golang.org/x/term v0.28.0 // indirect
142-
golang.org/x/text v0.21.0 // indirect
151+
golang.org/x/sys v0.30.0 // indirect
152+
golang.org/x/term v0.29.0 // indirect
153+
golang.org/x/text v0.22.0 // indirect
143154
golang.org/x/time v0.8.0 // indirect
144-
google.golang.org/protobuf v1.35.1 // indirect
155+
google.golang.org/protobuf v1.36.5 // indirect
145156
gopkg.in/inf.v0 v0.9.1 // indirect
146157
gopkg.in/yaml.v2 v2.4.0 // indirect
147158
gopkg.in/yaml.v3 v3.0.1 // indirect
@@ -153,4 +164,4 @@ require (
153164
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
154165
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
155166
sigs.k8s.io/yaml v1.4.0 // indirect
156-
)
167+
)

0 commit comments

Comments
 (0)