From 91657006956d9cba6f51a24b3a9596fc70987d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jiri=20Dan=C4=9Bk?= Date: Sun, 24 Nov 2024 20:15:34 +0100 Subject: [PATCH] fixup run go fmt --- .../controllers/notebook_controller.go | 4 ++-- .../controllers/suite_test.go | 16 ++++++++-------- components/odh-notebook-controller/main.go | 12 ++++++------ 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/components/odh-notebook-controller/controllers/notebook_controller.go b/components/odh-notebook-controller/controllers/notebook_controller.go index eb79eb01679..e8b77ace91f 100644 --- a/components/odh-notebook-controller/controllers/notebook_controller.go +++ b/components/odh-notebook-controller/controllers/notebook_controller.go @@ -58,8 +58,8 @@ const ( type OpenshiftNotebookReconciler struct { client.Client Namespace string - Scheme *runtime.Scheme - Log logr.Logger + Scheme *runtime.Scheme + Log logr.Logger } // ClusterRole permissions diff --git a/components/odh-notebook-controller/controllers/suite_test.go b/components/odh-notebook-controller/controllers/suite_test.go index 77e030c7109..1cdc8ce65a4 100644 --- a/components/odh-notebook-controller/controllers/suite_test.go +++ b/components/odh-notebook-controller/controllers/suite_test.go @@ -69,8 +69,8 @@ var ( ) const ( - timeout = time.Second * 10 - interval = time.Second * 2 + timeout = time.Second * 10 + interval = time.Second * 2 odhNotebookControllerTestNamespace = "redhat-ods-applications" ) @@ -174,9 +174,9 @@ var _ = BeforeSuite(func() { // Setup notebook controller err = (&OpenshiftNotebookReconciler{ - Client: mgr.GetClient(), - Log: ctrl.Log.WithName("controllers").WithName("notebook-controller"), - Scheme: mgr.GetScheme(), + Client: mgr.GetClient(), + Log: ctrl.Log.WithName("controllers").WithName("notebook-controller"), + Scheme: mgr.GetScheme(), Namespace: odhNotebookControllerTestNamespace, }).SetupWithManager(mgr) Expect(err).ToNot(HaveOccurred()) @@ -185,9 +185,9 @@ var _ = BeforeSuite(func() { hookServer := mgr.GetWebhookServer() notebookWebhook := &webhook.Admission{ Handler: &NotebookWebhook{ - Log: ctrl.Log.WithName("controllers").WithName("notebook-controller"), - Client: mgr.GetClient(), - Config: mgr.GetConfig(), + Log: ctrl.Log.WithName("controllers").WithName("notebook-controller"), + Client: mgr.GetClient(), + Config: mgr.GetConfig(), Namespace: odhNotebookControllerTestNamespace, OAuthConfig: OAuthConfig{ ProxyImage: OAuthProxyImage, diff --git a/components/odh-notebook-controller/main.go b/components/odh-notebook-controller/main.go index 26e82bd6acc..85fa78e0801 100644 --- a/components/odh-notebook-controller/main.go +++ b/components/odh-notebook-controller/main.go @@ -124,10 +124,10 @@ func main() { } setupLog.Info("Controller is running in namespace", "namespace", namespace) if err = (&controllers.OpenshiftNotebookReconciler{ - Client: mgr.GetClient(), - Log: ctrl.Log.WithName("controllers").WithName("Notebook"), + Client: mgr.GetClient(), + Log: ctrl.Log.WithName("controllers").WithName("Notebook"), Namespace: namespace, - Scheme: mgr.GetScheme(), + Scheme: mgr.GetScheme(), }).SetupWithManager(mgr); err != nil { setupLog.Error(err, "unable to create controller", "controller", "Notebook") os.Exit(1) @@ -137,9 +137,9 @@ func main() { hookServer := mgr.GetWebhookServer() notebookWebhook := &webhook.Admission{ Handler: &controllers.NotebookWebhook{ - Log: ctrl.Log.WithName("controllers").WithName("Notebook"), - Client: mgr.GetClient(), - Config: mgr.GetConfig(), + Log: ctrl.Log.WithName("controllers").WithName("Notebook"), + Client: mgr.GetClient(), + Config: mgr.GetConfig(), Namespace: namespace, OAuthConfig: controllers.OAuthConfig{ ProxyImage: oauthProxyImage,