Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/mongodb-replicaset] Add support to customize updateStrategy (#…
Browse files Browse the repository at this point in the history
…20968)

* add support to customize updateStrategy

Signed-off-by: Tuan Anh Nguyen <tuananh.nguyen-ext@commercetools.de>

* minor version bump

Signed-off-by: Tuan Anh Nguyen <tuananh.nguyen-ext@commercetools.de>
  • Loading branch information
tuananhnguyen-ct authored Mar 17, 2020
1 parent 5efc276 commit aa307a3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/mongodb-replicaset/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: mongodb-replicaset
home: https://github.com/mongodb/mongo
version: 3.13.1
version: 3.14.0
appVersion: 3.6
description: NoSQL document-oriented database that stores JSON-like documents with
dynamic schemas, simplifying the integration of data in content-driven applications.
Expand Down
3 changes: 2 additions & 1 deletion stable/mongodb-replicaset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ The following table lists the configurable parameters of the mongodb chart and t
| `replicaSetName` | The name of the replica set | `rs0` |
| `skipInitialization` | If `true` skip replica set initialization during bootstrapping | `false`
| `podDisruptionBudget` | Pod disruption budget | `{}` |
| `updateStrategy` | Update strategy | `nil` |
| `port` | MongoDB port | `27017` |
| `imagePullSecrets` | Image pull secrets | `[]` |
| `installImage.repository` | Image name for the install container | `unguiculus/mongodb-install` |
Expand Down Expand Up @@ -406,7 +407,7 @@ metadata:
spec:
type: ExternalName
externalName: mongodb01.mydomain.com
```
```
If you also put each StatefulSet member behind a loadbalancer the ReplicaSet members outside of the cluster will also be able to reach the pods inside the cluster.
Expand Down
4 changes: 4 additions & 0 deletions stable/mongodb-replicaset/templates/mongodb-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ metadata:
name: {{ template "mongodb-replicaset.fullname" . }}
namespace: {{ template "mongodb-replicaset.namespace" . }}
spec:
{{- if .Values.updateStrategy }}
updateStrategy:
{{ toYaml .Values.updateStrategy | indent 4 }}
{{- end }}
selector:
matchLabels:
app: {{ template "mongodb-replicaset.name" . }}
Expand Down
3 changes: 3 additions & 0 deletions stable/mongodb-replicaset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ podDisruptionBudget: {}
# maxUnavailable: 1
# minAvailable: 2

# updateStrategy:
# type: RollingUpdate

auth:
enabled: false
existingKeySecret: ""
Expand Down

0 comments on commit aa307a3

Please sign in to comment.