-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
admin: Add debug-addr CLI flag #7840
base: main
Are you sure you want to change the base?
Conversation
If provided, the CLI flag will override the value in the config file. Use the CLI flag to de-conflict parallel integration tests. Fixes #7838
cmd/admin/main.go
Outdated
@@ -92,6 +93,7 @@ func main() { | |||
// they're present. | |||
configFile := flag.String("config", "", "Path to the configuration file for this service (required)") | |||
dryRun := flag.Bool("dry-run", true, "Print actions instead of mutating the database") | |||
debugAddr := flag.String("debug-addr", "", "Debug server address override") |
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.
If we're removing the need for debugAddr in newStatsRegistry
, then I think there's no need to add this CLI flag here anymore.
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.
I agree with this. And above, in admin.go lines 50-52.
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.
The newest commit deprecates and stops any use of debugAddr from the config file, and just uses the CLI flag. Is this OK, or are you saying it would make sense to stop plumbing through any debugAddr at all for admin
?
cmd/admin/main.go
Outdated
@@ -92,6 +93,7 @@ func main() { | |||
// they're present. | |||
configFile := flag.String("config", "", "Path to the configuration file for this service (required)") | |||
dryRun := flag.Bool("dry-run", true, "Print actions instead of mutating the database") | |||
debugAddr := flag.String("debug-addr", "", "Debug server address override") |
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.
I agree with this. And above, in admin.go lines 50-52.
@jprenken, this PR appears to contain configuration and/or SQL schema changes. Please ensure that a corresponding deployment ticket has been filed with the new values. |
If provided, the CLI flag will override the value in the config file.
Use the CLI flag to de-conflict parallel integration tests.
Make debug addresses optional for all cmds.
Fixes #7838