mirror of https://github.com/knative/docs.git
allow emit-metrics flag (#1076)
This commit is contained in:
parent
2fdc4bbed9
commit
0ca7b238c4
|
@ -33,6 +33,7 @@ type EnvironmentFlags struct {
|
|||
Cluster string // K8s cluster (defaults to cluster in kubeconfig)
|
||||
LogVerbose bool // Enable verbose logging
|
||||
DockerRepo string // Docker repo (defaults to $KO_DOCKER_REPO)
|
||||
EmitMetrics bool // Emit metrics
|
||||
Tag string // Docker image tag
|
||||
}
|
||||
|
||||
|
@ -44,6 +45,9 @@ func initializeFlags() *EnvironmentFlags {
|
|||
flag.BoolVar(&f.LogVerbose, "logverbose", false,
|
||||
"Set this flag to true if you would like to see verbose logging.")
|
||||
|
||||
flag.BoolVar(&f.EmitMetrics, "emitmetrics", false,
|
||||
"Set this flag to true if you would like tests to emit metrics, e.g. latency of resources being realized in the system.")
|
||||
|
||||
flag.StringVar(&f.DockerRepo, "dockerrepo", os.Getenv("KO_DOCKER_REPO"),
|
||||
"Provide the uri of the docker repo you have uploaded the test image to using `uploadtestimage.sh`. Defaults to $KO_DOCKER_REPO")
|
||||
|
||||
|
|
Loading…
Reference in New Issue