Skip to content

Commit

Permalink
Merge pull request #1799 from daemon1024/controller-hotfix-latest
Browse files Browse the repository at this point in the history
hotfix(controller): don't exit controller on reconciler failure for hsp and csp
  • Loading branch information
DelusionalOptimist authored Jul 9, 2024
2 parents 5139feb + ca08d33 commit 3a4ec08
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/KubeArmorController/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ func main() {
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "KubeArmorHostPolicy")
os.Exit(1)
}

setupLog.Info("Adding KubeArmor policy controller")
Expand All @@ -131,16 +130,6 @@ func main() {
os.Exit(1)
}

setupLog.Info("Adding KubeArmor Cluster policy controller")
if err = (&controllers.KubeArmorClusterPolicyReconciler{
Client: mgr.GetClient(),
Log: ctrl.Log.WithName("controllers").WithName("KubeArmorClusterPolicy"),
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "KubeArmorClusterPolicy")
os.Exit(1)
}

//+kubebuilder:scaffold:builder

setupLog.Info("starting manager")
Expand Down

0 comments on commit 3a4ec08

Please sign in to comment.