Charts: [stable/mongodb-replicaset] Unable to install replica set

Created on 18 Dec 2019  路  5Comments  路  Source: helm/charts

Describe the bug

  • I tried installing using the command
    helm install --name vjp-mongo --set image.tag=4.0 --set initMongodStandalone="db.adminCommand( { setFeatureCompatibilityVersion: '4.0' } )" --names pace vijump stable/mongodb-replicaset
  • Unfortunately, i got the following error

Error: parse error in "mongodb-replicaset/templates/_helpers.tpl": template: mongodb-replicaset/templates/_helpers.tpl:65: unexpected "-" in define clause

Version of Helm and Kubernetes:
Helm v2.13.0

Which chart:
stable/mongodb-replicaset

Anything else we need to know:

  • The same command was working a month ago.
  • I ran the same command with incubator/mongodb-replicaset instead of stable/mongodb-replicaset and it worked.
  • I see that a commit was made a few hours ago in _helpers.tpl
  • On line number 65 {{- define "mongodb-replicaset.connection-string" -}} , there are two spaces between "mongodb-replicaset.connection-string" and -, maybe this could be the problem ?
lifecyclstale

Most helpful comment

same here

All 5 comments

same here

same here

Able to get it working by adding --version 3.10.3 in my helm install command.
But still getting error with any version after 3.10.3.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

This issue is being automatically closed due to inactivity.

Was this page helpful?
0 / 5 - 0 ratings