Skip to content

Commit

Permalink
Add a non namespaced client to SriovOperatorConfigReconciler
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Panattoni <[email protected]>
  • Loading branch information
zeeke committed Jul 3, 2024
1 parent 9c1eb96 commit 11d6708
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions controllers/sriovoperatorconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ type SriovOperatorConfigReconciler struct {
Scheme *runtime.Scheme
PlatformHelper platforms.Interface
FeatureGate featuregate.FeatureGate
GlobalClient client.Client
}

//+kubebuilder:rbac:groups=sriovnetwork.openshift.io,resources=sriovoperatorconfigs,verbs=get;list;watch;create;update;patch;delete
Expand Down
1 change: 1 addition & 0 deletions controllers/sriovoperatorconfig_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ var _ = Describe("SriovOperatorConfig controller", Ordered, func() {

err = (&SriovOperatorConfigReconciler{
Client: k8sManager.GetClient(),
GlobalClient: k8sManager.GetClient(),
Scheme: k8sManager.GetScheme(),
PlatformHelper: platformHelper,
FeatureGate: featuregate.New(),
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ func main() {
}
if err = (&controllers.SriovOperatorConfigReconciler{
Client: mgr.GetClient(),
GlobalClient: mgrGlobal.GetClient(),
Scheme: mgr.GetScheme(),
PlatformHelper: platformsHelper,
FeatureGate: featureGate,
Expand Down

0 comments on commit 11d6708

Please sign in to comment.