Skip to content

Commit

Permalink
adding additional config
Browse files Browse the repository at this point in the history
  • Loading branch information
theburi committed Mar 2, 2021
1 parent f3be577 commit e3789dc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
7 changes: 7 additions & 0 deletions charts/ent-operator-database/templates/database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ spec:

# If you need to manage MongoDB users directly via the mongods, set this value to true
ignoreUnknownUsers: false # default value false


additionalMongodConfig:
{{- with .Values.additionalMongodConfig }}
{{- toYaml . | nindent 4 }}
{{- end }}

{{- if .Values.externalConnectivity.enable }}
externalConnectivity:
{{- with .Values.externalConnectivity.replicaSetHorizons }}
Expand Down
3 changes: 3 additions & 0 deletions charts/ent-operator-database/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ persistence:

clusterName: cluster.local

additionalMongodConfig:
storageEngine: wiredTiger

# External connectivity configuration
# https://docs.mongodb.com/kubernetes-operator/master/tutorial/connect-from-outside-k8s/
externalConnectivity:
Expand Down
4 changes: 2 additions & 2 deletions charts/ent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: mongodb-enterprise-operator
deployment_name: mongodb-enterprise-operator

# Version of mongodb-enterprise-operator and mongodb-enterprise-database images
version: 1.9.1
version: 1.9.2

# The Custom Resources that will be watched by the Operator.
# Needs to be changed if only some of the CRDs are installed
Expand All @@ -43,7 +43,7 @@ registry:

operator:
Image: quay.io/mongodb/mongodb-enterprise-operator
Tag: 1.9.1
Tag: 1.9.2

database:
Image: quay.io/mongodb/mongodb-enterprise-database
Expand Down
7 changes: 6 additions & 1 deletion helpers/MongoDB-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,9 @@ kubectl create configmap opsmanager-configmap --from-literal=projectName=$MONGOD
# Deploy HELM Chart
pushd ../charts/ent-operator-database/
helm upgrade mongodb . --set opsManager.configMap=opsmanager-configmap --set opsManager.secretRef=opsmanager-org-access-key -n $MONGODB_NAMESPACE --create-namespace -i
popd
popd

until [ $(kubectl get mdb -n $MONGODB_NAMESPACE -o=jsonpath='{.items[0].status.phase}') = Running ];
do
sleep 10s
done;

0 comments on commit e3789dc

Please sign in to comment.