Skip to content

Commit

Permalink
Add Distance SeedClient to Monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
Honigeintopf committed Nov 22, 2024
1 parent eb2cfa1 commit a268344
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ func main() {
panic(err)
}

shootClient, err := controllerclient.New(shootConfig, controllerclient.Options{Scheme: scheme})
shootClient, err := controllerclient.New(shootConfig, controllerclient.Options{
Scheme: scheme,
})
if err != nil {
l.Error("unable to create shoot client", "error", err)
panic(err)
Expand All @@ -214,12 +216,14 @@ func main() {
updater := updater.New(ctrl.Log.WithName("updater"), shootMgr.GetEventRecorderFor("FirewallController"))

fwmReconciler := &controllers.FirewallMonitorReconciler{
ShootClient: shootMgr.GetClient(),
Log: ctrl.Log.WithName("controllers").WithName("FirewallMonitorReconciler"),
Recorder: shootMgr.GetEventRecorderFor("FirewallMonitorController"),
IDSEnabled: enableIDS,
FirewallName: firewallName,
Namespace: firewallv2.FirewallShootNamespace,
ShootClient: shootMgr.GetClient(),
SeedClient: seedMgr.GetClient(),
Log: ctrl.Log.WithName("controllers").WithName("FirewallMonitorReconciler"),
Recorder: shootMgr.GetEventRecorderFor("FirewallMonitorController"),
IDSEnabled: enableIDS,
FirewallName: firewallName,
Namespace: firewallv2.FirewallShootNamespace,
SeedNamespace: seedNamespace,
}

// Firewall Reconciler
Expand Down

0 comments on commit a268344

Please sign in to comment.