Skip to content

Commit

Permalink
Merge branch 'main' into appProtocol
Browse files Browse the repository at this point in the history
  • Loading branch information
hors authored Jan 15, 2024
2 parents c189417 + 56294d5 commit e7b9271
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 11 deletions.
11 changes: 6 additions & 5 deletions build/ps-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ if [[ $originalArgOne == mongo* ]] && [ "$(id -u)" = '0' ]; then
chown --dereference mongodb "/proc/$$/fd/1" "/proc/$$/fd/2" || :
# ignore errors thanks to https://github.com/docker-library/mongo/issues/149

exec gosu mongodb:1001 "$BASH_SOURCE" "$@"
exec gosu mongodb:1001 "${BASH_SOURCE[0]}" "$@"
fi

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

Expand Down Expand Up @@ -88,7 +88,7 @@ _mongod_hack_get_arg_val() {
return 0
;;
"$checkArg"=*)
echo "${arg#$checkArg=}"
echo "${arg#"$checkArg"=}"
return 0
;;
esac
Expand Down Expand Up @@ -398,6 +398,7 @@ if [ "$originalArgOne" = 'mongod' ]; then
case "$f" in
*.sh)
echo "$0: running $f"
# shellcheck source=/dev/null
. "$f"
;;
*.js)
Expand Down
1 change: 1 addition & 0 deletions e2e-tests/functions
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,7 @@ cat_config() {
cat "$1" \
| yq eval '(.spec | select(.image == null)).image = "'"$IMAGE_MONGOD"'"' \
| yq eval '(.spec | select(has("pmm"))).pmm.image = "'"$IMAGE_PMM_CLIENT"'"' \
| yq eval '(.spec | select(has("initImage"))).initImage = "'"$IMAGE"'"' \
| yq eval '(.spec | select(has("backup"))).backup.image = "'"$IMAGE_BACKUP"'"' \
| yq eval '.spec.upgradeOptions.apply="Never"'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations: {}
generation: 3
generation: 2
labels:
app.kubernetes.io/component: mongod
app.kubernetes.io/instance: some-name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations: {}
generation: 3
generation: 2
labels:
app.kubernetes.io/component: cfg
app.kubernetes.io/instance: some-name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations: {}
generation: 3
generation: 2
labels:
app.kubernetes.io/component: mongod
app.kubernetes.io/instance: some-name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations: {}
generation: 3
generation: 2
labels:
app.kubernetes.io/component: mongod
app.kubernetes.io/instance: some-name
Expand Down
1 change: 1 addition & 0 deletions e2e-tests/upgrade-consistency-sharded/conf/some-name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
#platform: openshift
image:
imagePullPolicy: Always
initImage: -init
allowUnsafeConfigurations: false
updateStrategy: SmartUpdate
secrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations: {}
generation: 3
generation: 2
labels:
app.kubernetes.io/component: mongod
app.kubernetes.io/instance: some-name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations: {}
generation: 3
generation: 2
labels:
app.kubernetes.io/component: mongod
app.kubernetes.io/instance: some-name
Expand Down
1 change: 1 addition & 0 deletions e2e-tests/upgrade-consistency/conf/some-name-rs0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ spec:
#platform: openshift
image:
imagePullPolicy: Always
initImage: -init
allowUnsafeConfigurations: false
backup:
enabled: false
Expand Down

0 comments on commit e7b9271

Please sign in to comment.