Added pprof flag (#980)

* added pprof flag

* updated chart

* fixed linting and spelling
This commit is contained in:
Muhammad Safwan Karim
2025-07-29 15:49:30 +05:00
committed by GitHub
parent 49409dce54
commit 1e46d44c7c
8 changed files with 47 additions and 4 deletions

View File

@@ -80,6 +80,10 @@ type ReloaderOptions struct {
ResourceSelectors []string `json:"resourceSelectors"`
// NamespacesToIgnore is a list of namespace names to ignore when watching for changes
NamespacesToIgnore []string `json:"namespacesToIgnore"`
// EnablePProf enables pprof for profiling
EnablePProf bool `json:"enablePProf"`
// PProfAddr is the address to start pprof server on
PProfAddr string `json:"pprofAddr"`
}
var CommandLineOptions *ReloaderOptions
@@ -253,6 +257,7 @@ func GetCommandLineOptions() *ReloaderOptions {
CommandLineOptions.IsArgoRollouts = parseBool(options.IsArgoRollouts)
CommandLineOptions.ReloadOnCreate = parseBool(options.ReloadOnCreate)
CommandLineOptions.ReloadOnDelete = parseBool(options.ReloadOnDelete)
CommandLineOptions.EnablePProf = options.EnablePProf
return CommandLineOptions
}