Skip to content

Commit 64a3892

Browse files
haircommanderopenshift-cherrypick-robot
authored andcommitted
use metrics cli to configure config
Signed-off-by: Peter Hunt <[email protected]>
1 parent e847e08 commit 64a3892

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/pkg/criocli/criocli.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ func mergeConfig(config *libconfig.Config, ctx *cli.Context) (string, error) {
236236
if ctx.GlobalIsSet("version-file") {
237237
config.VersionFile = ctx.GlobalString("version-file")
238238
}
239+
if ctx.GlobalIsSet("enable-metrics") {
240+
config.EnableMetrics = ctx.GlobalBool("enable-metrics")
241+
}
242+
if ctx.GlobalIsSet("metrics-port") {
243+
config.MetricsPort = ctx.GlobalInt("metrics-port")
244+
}
239245

240246
return path, nil
241247
}

0 commit comments

Comments
 (0)