[bitnami/mongodb-sharded] PDB review (#26156)

* [bitnami/mongodb-sharded] PDB review

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update CHANGELOG.md

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

---------

Signed-off-by: Fran Mulero <fmulero@vmware.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Fran Mulero
2024-05-21 09:48:21 +00:00
committed by GitHub
co-authored by Bitnami Containers
parent 02b4f18746
commit e2584c81c1
7 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -35,4 +35,4 @@ maintainers:
name: mongodb-sharded
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/mongodb-sharded
version: 8.0.8
version: 8.1.0
+3 -3
View File
@@ -277,7 +277,7 @@ The Bitnami Kibana chart supports mounting extra volumes (either PVCs, secrets o
| `configsvr.extraVolumes` | Array to add extra volumes. Requires setting `extraVolumeMounts` | `[]` |
| `configsvr.extraVolumeMounts` | Array to add extra mounts (normally used with extraVolumes). Normally used with `extraVolumes` | `[]` |
| `configsvr.schedulerName` | Use an alternate scheduler, e.g. "stork". | `""` |
| `configsvr.pdb.create` | Enable pod disruption budget | `false` |
| `configsvr.pdb.create` | Enable pod disruption budget | `true` |
| `configsvr.pdb.minAvailable` | Minimum number of available config pods allowed (`0` to disable) | `0` |
| `configsvr.pdb.maxUnavailable` | Maximum number of unavailable config pods allowed (`0` to disable) | `1` |
| `configsvr.persistence.enabled` | Use a PVC to persist data | `true` |
@@ -385,7 +385,7 @@ The Bitnami Kibana chart supports mounting extra volumes (either PVCs, secrets o
| `mongos.servicePerReplica.extraPorts` | Extra ports to expose (normally used with the `sidecar` value) | `[]` |
| `mongos.servicePerReplica.sessionAffinity` | Session Affinity for Kubernetes service, can be "None" or "ClientIP" | `None` |
| `mongos.servicePerReplica.sessionAffinityConfig` | Additional settings for the sessionAffinity | `{}` |
| `mongos.pdb.create` | Enable pod disruption budget | `false` |
| `mongos.pdb.create` | Enable pod disruption budget | `true` |
| `mongos.pdb.minAvailable` | Minimum number of available mongo pods allowed (`0` to disable) | `0` |
| `mongos.pdb.maxUnavailable` | Maximum number of unavailable mongo pods allowed (`0` to disable) | `1` |
| `mongos.serviceAccount.create` | Whether to create a Service Account for mongos automatically | `true` |
@@ -467,7 +467,7 @@ The Bitnami Kibana chart supports mounting extra volumes (either PVCs, secrets o
| `shardsvr.dataNode.extraVolumes` | Array to add extra volumes. Requires setting `extraVolumeMounts` | `[]` |
| `shardsvr.dataNode.extraVolumeMounts` | Array to add extra mounts. Normally used with `extraVolumes` | `[]` |
| `shardsvr.dataNode.schedulerName` | Use an alternate scheduler, e.g. "stork". | `""` |
| `shardsvr.dataNode.pdb.create` | Enable pod disruption budget | `false` |
| `shardsvr.dataNode.pdb.create` | Enable pod disruption budget | `true` |
| `shardsvr.dataNode.pdb.minAvailable` | Minimum number of available data pods allowed (`0` to disable) | `0` |
| `shardsvr.dataNode.pdb.maxUnavailable` | Maximum number of unavailable data pods allowed (`0` to disable) | `1` |
| `shardsvr.dataNode.serviceAccount.create` | Specifies whether a ServiceAccount should be created for shardsvr | `true` |
@@ -3,7 +3,7 @@ Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- if and (not .Values.configsvr.external.host) .Values.configsvr.pdb.create -}}
{{- if and (not .Values.configsvr.external.host) .Values.configsvr.pdb.create }}
kind: PodDisruptionBudget
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
metadata:
@@ -3,7 +3,7 @@ Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- if .Values.mongos.pdb.create -}}
{{- if .Values.mongos.pdb.create }}
kind: PodDisruptionBudget
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
metadata:
@@ -3,9 +3,9 @@ Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- if and .Values.shards .Values.shardsvr.dataNode.pdb.create -}}
{{- $replicas := .Values.shards | int -}}
{{- range $i, $e := until $replicas -}}
{{- if and .Values.shards .Values.shardsvr.dataNode.pdb.create }}
{{- $replicas := .Values.shards | int }}
{{- range $i, $e := until $replicas }}
kind: PodDisruptionBudget
apiVersion: {{ include "common.capabilities.policy.apiVersion" $ }}
metadata:
+3 -3
View File
@@ -558,7 +558,7 @@ configsvr:
pdb:
## @param configsvr.pdb.create Enable pod disruption budget
##
create: false
create: true
## @param configsvr.pdb.minAvailable Minimum number of available config pods allowed (`0` to disable)
##
minAvailable: 0
@@ -965,7 +965,7 @@ mongos:
pdb:
## @param mongos.pdb.create Enable pod disruption budget
##
create: false
create: true
## @param mongos.pdb.minAvailable Minimum number of available mongo pods allowed (`0` to disable)
##
minAvailable: 0
@@ -1274,7 +1274,7 @@ shardsvr:
pdb:
## @param shardsvr.dataNode.pdb.create Enable pod disruption budget
##
create: false
create: true
## @param shardsvr.dataNode.pdb.minAvailable Minimum number of available data pods allowed (`0` to disable)
##
minAvailable: 0