Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #84 from liztio/refactor-capdctl
Browse files Browse the repository at this point in the history
Refactor capdctl
  • Loading branch information
k8s-ci-robot committed Jul 15, 2019
2 parents 3d528c1 + 419ec5c commit 981249f
Show file tree
Hide file tree
Showing 11 changed files with 721 additions and 336 deletions.
9 changes: 7 additions & 2 deletions cmd/capd-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ limitations under the License.
package main

import (
"fmt"
"flag"
"time"

"k8s.io/client-go/kubernetes"
"k8s.io/klog"
"k8s.io/klog/klogr"
"sigs.k8s.io/cluster-api-provider-docker/actuators"
"sigs.k8s.io/cluster-api-provider-docker/logger"
Expand All @@ -35,6 +36,9 @@ import (
)

func main() {
klog.InitFlags(flag.CommandLine)
flag.Parse()

cfg, err := config.GetConfig()
if err != nil {
panic(err)
Expand Down Expand Up @@ -86,7 +90,8 @@ func main() {
if err := capicluster.AddWithActuator(mgr, &clusterActuator); err != nil {
panic(err)
}
fmt.Println("starting the controller...!")

klogr.New().Info("Starting the controller")

if err := mgr.Start(signals.SetupSignalHandler()); err != nil {
panic(err)
Expand Down
Loading

0 comments on commit 981249f

Please sign in to comment.