From 36e6ea27cc6c2e34fd8ef4c7fb579961ab04e44a Mon Sep 17 00:00:00 2001 From: atheo89 Date: Fri, 1 Mar 2024 16:08:54 +0100 Subject: [PATCH] Fine tune the log and the variable names --- .../controllers/notebook_webhook.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/odh-notebook-controller/controllers/notebook_webhook.go b/components/odh-notebook-controller/controllers/notebook_webhook.go index 6247e636632..78a87aaffdd 100644 --- a/components/odh-notebook-controller/controllers/notebook_webhook.go +++ b/components/odh-notebook-controller/controllers/notebook_webhook.go @@ -300,7 +300,7 @@ func CheckAndMountCACertBundle(ctx context.Context, cli client.Client, notebook if err := certValidator(cm, "ca-bundle.crt", log); err == nil { log.Info("Validating certificates for ca-bundle.crt") - CustomCAvolumeMounts := []corev1.VolumeMount{ + customCAVolumeMounts := []corev1.VolumeMount{ { Name: volumeName, MountPath: caVolumeMountPath, @@ -308,14 +308,14 @@ func CheckAndMountCACertBundle(ctx context.Context, cli client.Client, notebook ReadOnly: true, }, } - volumeMounts = append(volumeMounts, CustomCAvolumeMounts...) + volumeMounts = append(volumeMounts, customCAVolumeMounts...) } else { log.Error(err, "Error validating certificates for ca-bundle.crt") } if err := certValidator(cm, "odh-ca-bundle.crt", log); err == nil { log.Info("Validating certificates for odh-ca-bundle.crt") - CustomODHCAvolumeMountsvolumeMounts := []corev1.VolumeMount{ + customODHCAVolumeMounts := []corev1.VolumeMount{ { Name: volumeName, MountPath: odhVolumeMountPath, @@ -323,7 +323,7 @@ func CheckAndMountCACertBundle(ctx context.Context, cli client.Client, notebook ReadOnly: true, }, } - volumeMounts = append(volumeMounts, CustomODHCAvolumeMountsvolumeMounts...) + volumeMounts = append(volumeMounts, customODHCAVolumeMounts...) } else { log.Error(err, "Error validating certificates for odh-ca-bundle.crt") }