Skip to content

Commit

Permalink
[bitnami/mongodb] Use different liveness/readiness probes (#26152)
Browse files Browse the repository at this point in the history
* [bitnami/mongodb] Use different liveness/readiness probes

Signed-off-by: David Gomez <dgomezleon@vmware.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

---------

Signed-off-by: David Gomez <dgomezleon@vmware.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
  • Loading branch information
2 people authored and javsalgar committed May 22, 2024
1 parent 02220fe commit 0e427a0
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 13 deletions.
7 changes: 6 additions & 1 deletion bitnami/mongodb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Changelog

## 15.5.1 (2024-05-21)

* [bitnami/mongodb] Use different liveness/readiness probes ([#26152](https://github.com/bitnami/charts/pulls/26152))

## 15.5.0 (2024-05-21)

* [bitnami/mongodb] feat: :sparkles: :lock: Add warning when original images are replaced ([#26247](https://github.com/bitnami/charts/pulls/26247))
* [bitnami/*] ci: :construction_worker: Add tag and changelog support (#25359) ([91c707c](https://github.com/bitnami/charts/commit/91c707c)), closes [#25359](https://github.com/bitnami/charts/issues/25359)
* [bitnami/mongodb] feat: :sparkles: :lock: Add warning when original images are replaced (#26247) ([8a2137a](https://github.com/bitnami/charts/commit/8a2137a)), closes [#26247](https://github.com/bitnami/charts/issues/26247)

## <small>15.4.5 (2024-05-20)</small>

Expand Down
1 change: 1 addition & 0 deletions bitnami/mongodb/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dependencies:
version: 2.19.3
digest: sha256:de997835d9ce9a9deefc2d70d8c62b11aa1d1a76ece9e86a83736ab9f930bf4d
generated: "2024-05-21T14:16:04.685179172+02:00"

3 changes: 2 additions & 1 deletion bitnami/mongodb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ maintainers:
name: mongodb
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/mongodb
version: 15.5.0
version: 15.5.1

11 changes: 7 additions & 4 deletions bitnami/mongodb/templates/arbiter/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,10 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.arbiter.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.arbiter.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.arbiter.livenessProbe "enabled") "context" $) | nindent 12 }}
tcpSocket:
port: mongodb
exec:
command:
- pgrep
- mongod
{{- end }}
{{- if .Values.arbiter.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.arbiter.customReadinessProbe "context" $) | nindent 12 }}
Expand All @@ -235,8 +237,9 @@ spec:
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.arbiter.customStartupProbe "context" $) | nindent 12 }}
{{- else if .Values.arbiter.startupProbe.enabled }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.arbiter.startupProbe "enabled") "context" $) | nindent 12 }}
tcpSocket:
port: mongodb
exec:
command:
- /bitnami/scripts/startup-probe.sh
{{- end }}
{{- end }}
{{- if .Values.arbiter.resources }}
Expand Down
5 changes: 2 additions & 3 deletions bitnami/mongodb/templates/hidden/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ spec:
readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.hidden.readinessProbe "enabled") "context" $) | nindent 12 }}
exec:
command:
- /bitnami/scripts/ping-mongodb.sh
- /bitnami/scripts/readiness-probe.sh
{{- end }}
{{- if .Values.hidden.customStartupProbe }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.hidden.customStartupProbe "context" $) | nindent 12 }}
Expand Down Expand Up @@ -436,8 +436,7 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.metrics.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.metrics.livenessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /
tcpSocket:
port: metrics
{{- end }}
{{- if .Values.metrics.customReadinessProbe }}
Expand Down
3 changes: 1 addition & 2 deletions bitnami/mongodb/templates/replicaset/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,7 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.metrics.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.metrics.livenessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /
tcpSocket:
port: metrics
{{- end }}
{{- if .Values.metrics.customReadinessProbe }}
Expand Down
3 changes: 1 addition & 2 deletions bitnami/mongodb/templates/standalone/dep-sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,7 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.metrics.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.metrics.livenessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /
tcpSocket:
port: metrics
{{- end }}
{{- if .Values.metrics.customReadinessProbe }}
Expand Down

0 comments on commit 0e427a0

Please sign in to comment.