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

[stable/mongodb-replicaset]: Updated environment variables in on-star…#4393

Closed
scottcrespo wants to merge 3 commits intohelm:masterfrom
scottcrespo:master
Closed

[stable/mongodb-replicaset]: Updated environment variables in on-star…#4393
scottcrespo wants to merge 3 commits intohelm:masterfrom
scottcrespo:master

Conversation

@scottcrespo
Copy link

…t script to access the correct values. Updated README with instructions on how to properly enable authentication.

What this PR does / why we need it:

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 21, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: scottcrespo
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: linki

Assign the PR to them by writing /assign @linki in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
Copy link
Contributor

Hi @scottcrespo. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 21, 2018
… script to access the correct values. Updated README with instructions on how to properly enable authentication.
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 21, 2018
@scottcrespo
Copy link
Author

#2976

Updated documentation and fixed environment variables in startup script

@scottcrespo
Copy link
Author

@unguiculus

Can you please review?

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 21, 2018
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 21, 2018
admin_user="$ADMIN_USER"
admin_password="$ADMIN_PASSWORD"
admin_user="$MONGO_INITDB_ROOT_USERNAME"
admin_password="$MONGO_INITDB_ROOT_PASSWORD"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change these? This doesn't make sense.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I dug into things a bit more and it really doesn't make sense.

I grabbed this solution from the thread in #2976 and it "just works." But, it shouldn't be accepted on that basis.

I think the rationale comes from the fact the underlying mongo docker image looks for MONGO_INITDB_ROOT_UESRNAME and MONGO_INITDB_ROOT_PASSWORD to create an initial admin user, and I think this issue might be pertinent to the problem reported in #2976

Perhaps mongodb-replicaset on-start.sh is clashing with underlying docker container's entrypoint script

That's the best I have to offer so far. Do you have an ideas of the root cause of the problem? Specifically, I'm trying to resolve the issue of the user not being properly created (or I can't log in with the user) when supplying a pre-existing secret to values.yaml.

It's bee some time since I first encountered the problem, so I need to go back and verify I can reproduce the issue. Please let me know your thoughts!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm currently also looking into this. I'm working on a fix that moves all chart-related options out of the config file and passes them to mongod. This will make configuration much easier and the user won't have to make changes in multiple places.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Then I think I should close this PR. Sound good to you?

I think we both agree this is not the right solution, and it sounds like you're coming up with something much more comprehensive.

@unguiculus
Copy link
Member

/assign

@unguiculus
Copy link
Member

Thanks @scottcrespo

@unguiculus unguiculus closed this Mar 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants