This repository was archived by the owner on Sep 24, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,11 @@ limitations under the License.
17
17
package main
18
18
19
19
import (
20
- "fmt "
20
+ "flag "
21
21
"time"
22
22
23
23
"k8s.io/client-go/kubernetes"
24
+ "k8s.io/klog"
24
25
"k8s.io/klog/klogr"
25
26
"sigs.k8s.io/cluster-api-provider-docker/actuators"
26
27
"sigs.k8s.io/cluster-api-provider-docker/logger"
@@ -35,6 +36,9 @@ import (
35
36
)
36
37
37
38
func main () {
39
+ klog .InitFlags (flag .CommandLine )
40
+ flag .Parse ()
41
+
38
42
cfg , err := config .GetConfig ()
39
43
if err != nil {
40
44
panic (err )
@@ -86,7 +90,8 @@ func main() {
86
90
if err := capicluster .AddWithActuator (mgr , & clusterActuator ); err != nil {
87
91
panic (err )
88
92
}
89
- fmt .Println ("starting the controller...!" )
93
+
94
+ klogr .New ().Info ("Starting the controller" )
90
95
91
96
if err := mgr .Start (signals .SetupSignalHandler ()); err != nil {
92
97
panic (err )
Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ func GetStatefulSet(image string) apps.StatefulSet {
73
73
Image : image ,
74
74
Command : []string {
75
75
"capd-manager" ,
76
+ "-v=3" ,
77
+ "-logtostderr=true" ,
76
78
},
77
79
VolumeMounts : []core.VolumeMount {
78
80
{
You can’t perform that action at this time.
0 commit comments