Skip to content

Commit

Permalink
[deckhouse] Using debug flag "debug-http-addr". (#522)
Browse files Browse the repository at this point in the history
Signed-off-by: dmitry.koba <[email protected]>
Co-authored-by: dmitry.koba <[email protected]>
  • Loading branch information
Dmitrykob and dmitry.koba authored Aug 28, 2023
1 parent ce92c1c commit a16ab23
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 a16ab23

Please sign in to comment.