INNER CODE UNIT · Go
setRestConfig
openkruise/kruise · main.go:280
func setRestConfig(c *rest.Config) {
if *restConfigQPS > 0 {
c.QPS = float32(*restConfigQPS)
}
if *restConfigBurst > 0 {
c.Burst = *restConfigBurst
}
}
func getCacheNamespacesFromFlag(ns string) map[string]cache.Config {
if ns == "" {
return nil
}
return map[string]cache.Config{
ns: {},
}
}