Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@
branch = "release-14.0"
name = "k8s.io/client-go"

[[constraint]]
version = "v1.1.1"
name = "github.com/google/uuid"

[[override]]
name = "github.com/ugorji/go"
revision = "8c0409fcbb70099c748d71f714529204975f6c3f"
10 changes: 6 additions & 4 deletions cmd/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,25 @@ var watchCmd = &cobra.Command{
// version to the next.

// Application configuration
config, err := config.GetConfig()
conf, err := config.GetConfig()
if err != nil {
fmt.Printf("Failed to open %s: %v", constants.ConfigPath, err)
os.Exit(1)
}

// Set the logging level.
if config.Debug {
if conf.Debug {
log.SetLevel(log.DebugLevel)
}
// Monitor config for log level change
lmlog.MonitorConfig()

// Add hook to log pod id in log context
hook := &lmlog.DefaultFieldHook{}
log.AddHook(hook)

// Instantiate the base struct.
base, err := argus.NewBase(config)
base, err := argus.NewBase(conf)
if err != nil {
log.Fatal(err.Error())
}
Expand All @@ -52,7 +54,7 @@ var watchCmd = &cobra.Command{
permission.Init(base.K8sClient)

// Set up a gRPC connection and CSC Client.
connection.Initialize(config)
connection.Initialize(conf)

connection.CreateConnectionHandler()

Expand Down
Loading