Skip to content

Commit

Permalink
updated main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
vireshnavalli committed May 26, 2023
1 parent 1c39baf commit d9ee966
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions free5gc-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,20 @@ func main() {
os.Exit(1)
}

schemeBuilder.Register(&workloadv1alpha1.AMFDeployment{}, &workloadv1alpha1.AMFDeploymentList{})
if err := schemeBuilder.AddToScheme(mgr.GetScheme()); err != nil {
setupLog.Error(err, "Not able to register AMFDeployment kind")
os.Exit(1)
}

if err = (&controllers.AMFDeploymentReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "AMFDeployment")
os.Exit(1)
}

if err = (&controllers.UPFDeploymentReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
Expand Down

0 comments on commit d9ee966

Please sign in to comment.