From 0fe63c1ebfec050f3707cc42f135fbc6104fb677 Mon Sep 17 00:00:00 2001 From: Jan Stourac Date: Thu, 23 May 2024 16:44:01 +0200 Subject: [PATCH] Odd number of arguments passed as key-value pairs for logging Fix the dpanic for log in notebook controller while injecting the trusted CA bundle configuration. https://issues.redhat.com/browse/RHOAIENG-5033 --- .../odh-notebook-controller/controllers/notebook_webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/odh-notebook-controller/controllers/notebook_webhook.go b/components/odh-notebook-controller/controllers/notebook_webhook.go index aa6bdf748d8..b8f977b9e78 100644 --- a/components/odh-notebook-controller/controllers/notebook_webhook.go +++ b/components/odh-notebook-controller/controllers/notebook_webhook.go @@ -314,7 +314,7 @@ func CheckAndMountCACertBundle(ctx context.Context, cli client.Client, notebook cm := workbenchConfigMap if cm.Name == workbenchConfigMapName { // Inject the trusted-ca volume and environment variables - log.Info("Injecting trusted-ca volume and environment variables", notebook.Name, "namespace", notebook.Namespace) + log.Info("Injecting trusted-ca volume and environment variables") return InjectCertConfig(notebook, workbenchConfigMapName) } return nil