mirror of
https://github.com/yannh/kubeconform.git
synced 2026-04-11 23:44:16 +00:00
Do not expose internal CPU profiling option as flag (#136)
This commit is contained in:
parent
f5338b07f9
commit
dbcd787256
3 changed files with 4 additions and 7 deletions
|
|
@ -69,8 +69,9 @@ func realMain() int {
|
|||
return 1
|
||||
}
|
||||
|
||||
if cfg.CPUProfileFile != "" {
|
||||
f, err := os.Create(cfg.CPUProfileFile)
|
||||
cpuProfileFile := os.Getenv("KUBECONFORM_CPUPROFILE_FILE")
|
||||
if cpuProfileFile != "" {
|
||||
f, err := os.Create(cpuProfileFile)
|
||||
if err != nil {
|
||||
log.Fatal("could not create CPU profile: ", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue