提交 9b3805d3 编写于 作者: A adolphlwq

use readable env name

上级 bc2f8900
......@@ -27,12 +27,12 @@ import (
_ "k8s.io/minikube/pkg/provision"
)
const minikubeEnvPrefix = "MINIKUBE_ENABLE_PROFILING"
const minikubeEnableProfile = "MINIKUBE_ENABLE_PROFILING"
func main() {
defer glog.Flush()
if os.Getenv(minikubeEnvPrefix) == "1" {
if os.Getenv(minikubeEnableProfile) == "1" {
defer profile.Start(profile.TraceProfile).Stop()
}
if os.Getenv(constants.IsMinikubeChildProcess) == "" {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册