@@ -77,7 +77,8 @@ func Run(opt *options.ServerOption) error {
7777
7878 namespace := os .Getenv (v1 .EnvKubeflowNamespace )
7979 if len (namespace ) == 0 {
80- log .Infof ("EnvKubeflowNamespace not set, use default namespace" )
80+ log .Infof ("EnvKubeflowNamespace not set, use default namespace %s" ,
81+ metav1 .NamespaceDefault )
8182 namespace = metav1 .NamespaceDefault
8283 }
8384 if opt .Namespace == corev1 .NamespaceAll {
@@ -108,6 +109,9 @@ func Run(opt *options.ServerOption) error {
108109 // Set client qps and burst by opt.
109110 kcfg .QPS = float32 (opt .QPS )
110111 kcfg .Burst = opt .Burst
112+ log .Infof (
113+ "Creating client sets and informers with QPS %d, burst %d, resync period %s" ,
114+ opt .QPS , opt .Burst , opt .ResyncPeriod .String ())
111115
112116 // Create clients.
113117 kubeClientSet , leaderElectionClientSet ,
@@ -125,7 +129,8 @@ func Run(opt *options.ServerOption) error {
125129 kubeInformerFactory := kubeinformers .NewFilteredSharedInformerFactory (kubeClientSet , opt .ResyncPeriod , opt .Namespace , nil )
126130 tfJobInformerFactory := tfjobinformers .NewSharedInformerFactory (tfJobClientSet , opt .ResyncPeriod )
127131
128- unstructuredInformer := controller .NewUnstructuredTFJobInformer (kcfg , opt .Namespace )
132+ unstructuredInformer := controller .NewUnstructuredTFJobInformer (
133+ kcfg , opt .Namespace , opt .ResyncPeriod )
129134
130135 // Create tf controller.
131136 tc := controller .NewTFController (unstructuredInformer , kubeClientSet , volcanoClientSet , tfJobClientSet , kubeInformerFactory , tfJobInformerFactory , * opt )
@@ -240,7 +245,7 @@ func checkCRDExists(clientset apiextensionclientset.Interface, namespace string)
240245 }
241246 }
242247
243- log .Infof ("CRD %s/%s %s is registered\n " ,
248+ log .Infof ("CRD %s/%s %s is registered" ,
244249 crd .Spec .Group , crd .Spec .Version , crd .Spec .Names .Singular )
245250 return true
246251}
0 commit comments