-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Remove Explorer #10581
Remove Explorer #10581
Changes from 8 commits
3a27219
4953e55
3736612
0e6b260
0ebe982
9b69595
3856a7d
37267fe
faed1cd
4d989a0
b99d928
3b818f9
792c882
03008eb
605f41e
684664c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,16 +14,6 @@ BackupURL = "postgresql://user:[email protected]:5432/dbname?sslmode | |
# Environment variable: `CL_DATABASE_ALLOW_SIMPLE_PASSWORDS` | ||
AllowSimplePasswords = false # Default | ||
|
||
[Explorer] | ||
# AccessKey is the access key for authenticating with the Explorer. | ||
# | ||
# Environment variable: `CL_EXPLORER_ACCESS_KEY` | ||
AccessKey = "access_key" # Example | ||
# Secret is the secret for authenticating with the Explorer. | ||
# | ||
# Environment variable: `CL_EXPLORER_SECRET` | ||
Secret = "secret" # Example | ||
|
||
[Password] | ||
# Keystore is the password for the node's account. | ||
# | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,10 +129,6 @@ func (s *Secrets) SetFrom(f *Secrets) (err error) { | |
err = multierr.Append(err, config.NamedMultiErrorList(err1, "Database")) | ||
} | ||
|
||
if err2 := s.Explorer.SetFrom(&f.Explorer); err2 != nil { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. /nit and a matter of preference - in the future when I revisit this file I'd spend some unnecessary time answering the question "why is err2 skipped?". If you'd like, perhaps update the ordering here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @patrickhuie19 just pushed a commit for this |
||
err = multierr.Append(err, config.NamedMultiErrorList(err2, "Explorer")) | ||
} | ||
|
||
if err3 := s.Password.SetFrom(&f.Password); err3 != nil { | ||
err = multierr.Append(err, config.NamedMultiErrorList(err3, "Password")) | ||
} | ||
|
@@ -223,12 +219,6 @@ func (s *Secrets) setEnv() error { | |
s.Database.AllowSimplePasswords = new(bool) | ||
*s.Database.AllowSimplePasswords = true | ||
} | ||
if explorerKey := env.ExplorerAccessKey.Get(); explorerKey != "" { | ||
s.Explorer.AccessKey = &explorerKey | ||
} | ||
if explorerSecret := env.ExplorerSecret.Get(); explorerSecret != "" { | ||
s.Explorer.Secret = &explorerSecret | ||
} | ||
if keystorePassword := env.PasswordKeystore.Get(); keystorePassword != "" { | ||
s.Password.Keystore = &keystorePassword | ||
} | ||
|
This file was deleted.
This file was deleted.
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.
unrelated to the scope of this PR, but this is a pretty heavy API w/ a large number of the parameters coming from
cfg.TelemetryIngress()
- what do you think of plumbingticfg
as one parameter through instead?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.
sounds good to me, that would definitely clean things up a bit 🙂