Skip to content
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

[deckhouse] Fix using debug flag "debug-http-addr". #522

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions pkg/app/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ var DebugKubernetesAPI = false
func DefineDebugFlags(kpApp *kingpin.Application, cmd *kingpin.CmdClause) {
DefineDebugUnixSocketFlag(cmd)

cmd.Flag("debug-http-addr", "http addr for a debug endpoint").
Envar("DEBUG_HTTP_SERVER_ADDR").
Hidden().
Default(DebugHttpServerAddr).
StringVar(&DebugHttpServerAddr)

cmd.Flag("debug-keep-tmp-files", "set to yes to disable cleanup of temporary files").
Envar("DEBUG_KEEP_TMP_FILES").
Hidden().
Expand Down Expand Up @@ -77,11 +83,3 @@ func DefineDebugUnixSocketFlag(cmd *kingpin.CmdClause) {
Default(DebugUnixSocket).
StringVar(&DebugUnixSocket)
}

func DefineDebugHttpPortFlag(cmd *kingpin.CmdClause) {
cmd.Flag("debug-http-port", "http port for a debug endpoint").
Envar("DEBUG_HTTP_SERVER_ADDR").
Hidden().
Default(DebugHttpServerAddr).
StringVar(&DebugHttpServerAddr)
}
Loading