Skip to content

Commit

Permalink
Update azure-aci to use nodeutil instead of node-cli
Browse files Browse the repository at this point in the history
Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com>
  • Loading branch information
helayoty committed Mar 16, 2023
1 parent caa9d1c commit e5b6812
Show file tree
Hide file tree
Showing 20 changed files with 971 additions and 747 deletions.
7 changes: 3 additions & 4 deletions cmd/init-container/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ package main
import (
"context"
"os"
"os/signal"
"time"

"github.com/sirupsen/logrus"
"github.com/virtual-kubelet/azure-aci/pkg/auth"
"github.com/virtual-kubelet/azure-aci/pkg/network"
"github.com/virtual-kubelet/azure-aci/pkg/util"
cli "github.com/virtual-kubelet/node-cli"
logruscli "github.com/virtual-kubelet/node-cli/logrus"
"github.com/virtual-kubelet/virtual-kubelet/log"
logruslogger "github.com/virtual-kubelet/virtual-kubelet/log/logrus"
v1 "k8s.io/api/core/v1"
Expand All @@ -26,11 +25,11 @@ import (
)

func main() {
ctx := cli.ContextWithCancelOnSignal(context.Background())
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
defer cancel()

logger := logrus.StandardLogger()
log.L = logruslogger.FromLogrus(logrus.NewEntry(logger))
_ = logruscli.Config{LogLevel: "info"}

log.G(ctx).Debug("Init container started")

Expand Down
Loading

0 comments on commit e5b6812

Please sign in to comment.