INNER CODE UNIT · Go
main
liqotech/liqo · cmd/crd-replicator/main.go:52
func main() {
// Manager flags
metricsAddr := pflag.String("metrics-address", ":8082", "The address the metric endpoint binds to")
clusterFlags := args.NewClusterIDFlags(true, nil)
resyncPeriod := pflag.Duration("resync-period", 10*time.Hour, "The resync period for the informers")
workers := pflag.Uint("workers", 1, "The number of workers managing the reflection of each remote cluster")
restcfg.InitFlags(nil)
flagsutils.InitKlogFlags(nil)
pflag.Parse()
log.SetLogger(klog.NewKlogr())
ctx := ctrl.SetupSignalHandler()
clusterID := clusterFlags.ReadOrDie()