INNER CODE UNIT · Go
main
openkruise/kruise · cmd/daemon/main.go:58
func main() {
utilfeature.DefaultMutableFeatureGate.AddFlag(pflag.CommandLine)
klog.InitFlags(nil)
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
pflag.Parse()
features.SetDefaultFeatureGates()
ctrl.SetLogger(klogr.New())
cfg := config.GetConfigOrDie()
cfg.UserAgent = "kruise-daemon"
if *restConfigQPS > 0 {
cfg.QPS = float32(*restConfigQPS)
}
if *restConfigBurst > 0 {
cfg.Burst = *restConfigBurst
}
if err := client.NewRegistry(cfg); err != nil {
klog.Fatalf("Failed to init clientset registry: %v", err)