Skip to content

Commit

Permalink
[deckhouse] Using debug flag "debug-http-addr".
Browse files Browse the repository at this point in the history
Signed-off-by: dmitry.koba <[email protected]>
  • Loading branch information
dmitry.koba committed Aug 28, 2023
1 parent ecd1edc commit e20627f
Showing 1 changed file with 6 additions and 8 deletions.
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)
}

0 comments on commit e20627f

Please sign in to comment.