MCPcopy Create free account
hub / github.com/VictoriaMetrics/operator / BindFlags

Function BindFlags

internal/controller/operator/controllers.go:34–37  ·  view source on GitHub ↗

BindFlags binds package flags to the given flagSet

(f *flag.FlagSet)

Source from the content-addressed store, hash-verified

32
33// BindFlags binds package flags to the given flagSet
34func BindFlags(f *flag.FlagSet) {
35 cacheSyncTimeout = f.Duration("controller.cacheSyncTimeout", *cacheSyncTimeout, "controls timeout for caches to be synced.")
36 maxConcurrency = f.Int("controller.maxConcurrentReconciles", *maxConcurrency, "Configures number of concurrent reconciles. It should improve performance for clusters with many objects.")
37}
38
39var (
40 cacheSyncTimeout = ptr.To(3 * time.Minute)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected