Skip to content

Commit 9e43711

Browse files
committed
BUG/MINOR: pprof: preserve backwards compatibility with 1.7 setup of pprof
port can now be changed with pprof, but to keep compatibility with previous version if not set it will be set to 6060
1 parent 9dd5d76 commit 9e43711

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ func main() {
7171
logInfo(logger, osArgs)
7272
logger.ShowFilename(true)
7373

74+
// backwards compatibility with 1.7
75+
if osArgs.PprofEnabled {
76+
osArgs.ControllerPort = 6060
77+
}
78+
7479
// Default annotations
7580
defaultBackendSvc := fmt.Sprint(osArgs.DefaultBackendService)
7681
defaultCertificate := fmt.Sprint(osArgs.DefaultCertificate)

0 commit comments

Comments
 (0)