From a88ec60c2f4455e6710e80ffb378177461652a3b Mon Sep 17 00:00:00 2001 From: "dmitry.koba" Date: Wed, 16 Aug 2023 13:56:31 +0300 Subject: [PATCH] [deckhouse] Using debug flag "debug-http-addr". Signed-off-by: dmitry.koba --- pkg/app/debug.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkg/app/debug.go b/pkg/app/debug.go index b7cec7c3..5d9d93fc 100644 --- a/pkg/app/debug.go +++ b/pkg/app/debug.go @@ -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(). @@ -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) -}