Skip to content

Commit e7b9271

Browse files
authored
Merge branch 'main' into appProtocol
2 parents c189417 + 56294d5 commit e7b9271

10 files changed

+15
-11
lines changed

build/ps-entry.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ if [[ $originalArgOne == mongo* ]] && [ "$(id -u)" = '0' ]; then
1919
chown --dereference mongodb "/proc/$$/fd/1" "/proc/$$/fd/2" || :
2020
# ignore errors thanks to https://github.com/docker-library/mongo/issues/149
2121

22-
exec gosu mongodb:1001 "$BASH_SOURCE" "$@"
22+
exec gosu mongodb:1001 "${BASH_SOURCE[0]}" "$@"
2323
fi
2424

2525
# you should use numactl to start your mongod instances, including the config servers, mongos instances, and any clients.
2626
# https://docs.mongodb.com/manual/administration/production-notes/#configuring-numa-on-linux
2727
if [[ $originalArgOne == mongo* ]]; then
28-
numa='numactl --interleave=all'
29-
if $numa true &>/dev/null; then
30-
set -- "$numa" "$@"
28+
numa=(numactl --interleave=all)
29+
if "${numa[@]}" true &>/dev/null; then
30+
set -- "${numa[@]}" "$@"
3131
fi
3232
fi
3333

@@ -88,7 +88,7 @@ _mongod_hack_get_arg_val() {
8888
return 0
8989
;;
9090
"$checkArg"=*)
91-
echo "${arg#$checkArg=}"
91+
echo "${arg#"$checkArg"=}"
9292
return 0
9393
;;
9494
esac
@@ -398,6 +398,7 @@ if [ "$originalArgOne" = 'mongod' ]; then
398398
case "$f" in
399399
*.sh)
400400
echo "$0: running $f"
401+
# shellcheck source=/dev/null
401402
. "$f"
402403
;;
403404
*.js)

e2e-tests/functions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,7 @@ cat_config() {
10401040
cat "$1" \
10411041
| yq eval '(.spec | select(.image == null)).image = "'"$IMAGE_MONGOD"'"' \
10421042
| yq eval '(.spec | select(has("pmm"))).pmm.image = "'"$IMAGE_PMM_CLIENT"'"' \
1043+
| yq eval '(.spec | select(has("initImage"))).initImage = "'"$IMAGE"'"' \
10431044
| yq eval '(.spec | select(has("backup"))).backup.image = "'"$IMAGE_BACKUP"'"' \
10441045
| yq eval '.spec.upgradeOptions.apply="Never"'
10451046
}

e2e-tests/upgrade-consistency-sharded/compare/statefulset_some-name-cfg-1160-oc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apps/v1
22
kind: StatefulSet
33
metadata:
44
annotations: {}
5-
generation: 3
5+
generation: 2
66
labels:
77
app.kubernetes.io/component: mongod
88
app.kubernetes.io/instance: some-name

e2e-tests/upgrade-consistency-sharded/compare/statefulset_some-name-cfg-1160.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apps/v1
22
kind: StatefulSet
33
metadata:
44
annotations: {}
5-
generation: 3
5+
generation: 2
66
labels:
77
app.kubernetes.io/component: cfg
88
app.kubernetes.io/instance: some-name

e2e-tests/upgrade-consistency-sharded/compare/statefulset_some-name-rs0-1160-oc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apps/v1
22
kind: StatefulSet
33
metadata:
44
annotations: {}
5-
generation: 3
5+
generation: 2
66
labels:
77
app.kubernetes.io/component: mongod
88
app.kubernetes.io/instance: some-name

e2e-tests/upgrade-consistency-sharded/compare/statefulset_some-name-rs0-1160.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apps/v1
22
kind: StatefulSet
33
metadata:
44
annotations: {}
5-
generation: 3
5+
generation: 2
66
labels:
77
app.kubernetes.io/component: mongod
88
app.kubernetes.io/instance: some-name

e2e-tests/upgrade-consistency-sharded/conf/some-name.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ spec:
1010
#platform: openshift
1111
image:
1212
imagePullPolicy: Always
13+
initImage: -init
1314
allowUnsafeConfigurations: false
1415
updateStrategy: SmartUpdate
1516
secrets:

e2e-tests/upgrade-consistency/compare/statefulset_some-name-rs0-1160-oc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apps/v1
22
kind: StatefulSet
33
metadata:
44
annotations: {}
5-
generation: 3
5+
generation: 2
66
labels:
77
app.kubernetes.io/component: mongod
88
app.kubernetes.io/instance: some-name

e2e-tests/upgrade-consistency/compare/statefulset_some-name-rs0-1160.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apps/v1
22
kind: StatefulSet
33
metadata:
44
annotations: {}
5-
generation: 3
5+
generation: 2
66
labels:
77
app.kubernetes.io/component: mongod
88
app.kubernetes.io/instance: some-name

e2e-tests/upgrade-consistency/conf/some-name-rs0.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ spec:
77
#platform: openshift
88
image:
99
imagePullPolicy: Always
10+
initImage: -init
1011
allowUnsafeConfigurations: false
1112
backup:
1213
enabled: false

0 commit comments

Comments
 (0)