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

mongodb chart: respect existingSecret in standalone deployment #7047

Closed
xornet-sl opened this issue Aug 6, 2018 · 4 comments
Closed

mongodb chart: respect existingSecret in standalone deployment #7047

xornet-sl opened this issue Aug 6, 2018 · 4 comments
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@xornet-sl
Copy link
Contributor

xornet-sl commented Aug 6, 2018

Is this a request for help?:


Is this a BUG REPORT or FEATURE REQUEST? (choose one):
This is a BUG

Version of Helm and Kubernetes:
Helm version 2.9.1
Kubernetes version 1.11.0

Which chart:
stable/mongodb chart version 4.0.4

What happened:
standalone mongodb doesn't respect .Values.existingSecret but replicaset does.

What you expected to happen:
Secret handling with and without replicaset should be similar.

How to reproduce it (as minimally and precisely as possible):

helm install -n mongodb --set replicaSet.enabled=false --set usePassword=true --set existingSecret=mongodb --set fullnameOverride=mongodb stable/mongodb

This command will fail with Error: release mongodb failed: secrets "mongodb" already exists if there is a precreated secret with name mongodb.
Moreover helm delete --purge mongodb will delete this "existing", predefined secret.
if we omit --set fullnameOverride it will create another secret (i.e. won't use --set existingSecret).

Anything else we need to know:

@stale
Copy link

stale bot commented Sep 5, 2018

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.

@stale stale bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 5, 2018
@sfitts
Copy link

sfitts commented Sep 10, 2018

Just wanted to report the same issue. Has not been addressed so hopefully it won't get aged out (makes the chart hard to use unless you only enable the replica set).

Dup of #6340 I believe.

@stale stale bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 10, 2018
@stale
Copy link

stale bot commented Oct 10, 2018

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.

@stale stale bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 10, 2018
@stale
Copy link

stale bot commented Oct 24, 2018

This issue is being automatically closed due to inactivity.

@stale stale bot closed this as completed Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

2 participants