-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix importing grafana admin user / password from ansible #937
Conversation
Codecov Report
@@ Coverage Diff @@
## master #937 +/- ##
==========================================
+ Coverage 22.94% 25.94% +3.00%
==========================================
Files 200 236 +36
Lines 16011 17743 +1732
==========================================
+ Hits 3674 4604 +930
- Misses 11831 12413 +582
- Partials 506 726 +220
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@AstroProfundis Please add a test case. :) |
This case is already added in the |
Should we apply username/password for DM's case? tiup/components/dm/ansible/import.go Lines 315 to 316 in cc41ad5
tiup/components/dm/ansible/import.go Lines 528 to 562 in cc41ad5
|
@@ -119,10 +119,10 @@ check_for_updates = true | |||
#################################### Security #################################### | |||
[security] | |||
# default admin user, created on startup | |||
;admin_user = admin | |||
admin_user = {{.Username}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if the Username is empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be set to admin
during unmarshal, the default value is set in spec tag
/lgtm |
/merge |
Can merge label has been added. Git tree hash: 0a1cf91
|
@AstroProfundis: Your PR has out-of-dated and I have automatically updated it for you. 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 tidb-community-bots/ti-community-prow repository. |
What problem does this PR solve?
Fix #932
Check List
Tests
Code changes
Related changes
Release notes: