Skip to content

Commit

Permalink
Updated minor
Browse files Browse the repository at this point in the history
  • Loading branch information
seungsoo-lee committed Aug 12, 2021
1 parent d34c414 commit 8b01b7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/conf/local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ application:
network-policy-to: "db|file" # db, file
network-policy-dir: "./"
system:
operation-mode: 2 # 1: cronjob | 2: one-time-job
operation-mode: 1 # 1: cronjob | 2: one-time-job
cron-job-time-interval: "0h0m10s" # format: XhYmZs
operation-trigger: 100
system-log-from: "db" # db|kubearmor
Expand Down
2 changes: 1 addition & 1 deletion src/networkpolicy/helperFunctions.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func getNetworkLogs() []types.KnoxNetworkLog {

// get flows from hubble relay
flows := plugin.GetCiliumFlowsFromHubble(OperationTrigger)
if len(flows) == 0 {
if len(flows) == 0 || len(flows) < OperationTrigger {
return nil
}

Expand Down
10 changes: 5 additions & 5 deletions src/server/grpcServer.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ func GetNewServer() *grpc.Server {
if cfg.GetCurrentCfg().ConfigClusterMgmt.ClusterInfoFrom != "k8sclient" {
// start consumer automatically
feedconsumer.StartConsumer()
}

// start net worker automatically
networker.StartNetworkWorker()
// start net worker automatically
networker.StartNetworkWorker()

// start sys worker automatically
sysworker.StartSystemWorker()
}
// start sys worker automatically
sysworker.StartSystemWorker()

return s
}

0 comments on commit 8b01b7d

Please sign in to comment.