From afe25c37807a994da5abbd1f53fd796d439c36d1 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Thu, 28 Sep 2023 00:55:26 +0530 Subject: [PATCH] review comments incorporated --- webhook/webhook-dsnexec.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webhook/webhook-dsnexec.go b/webhook/webhook-dsnexec.go index 00af2256..83079bc3 100644 --- a/webhook/webhook-dsnexec.go +++ b/webhook/webhook-dsnexec.go @@ -42,11 +42,11 @@ func dsnExecSideCarInjectionRequired(pod *corev1.Pod) (bool, string, string) { alreadyInjected, err := strconv.ParseBool(pod.Annotations["infoblox.com/dsnexec-injected"]) if err == nil && alreadyInjected { - dsnexecLog.Info("DsnExec sidecar already injected: ", pod.Name, remoteDbSecretName, pod.Name, dsnExecConfigSecret) + dsnexecLog.Info("DsnExec sidecar already injected: ", pod.Name, pod.Annotations) return false, remoteDbSecretName, dsnExecConfigSecret } - dsnexecLog.Info("DsnExec sidecar Injection required: ", pod.Name, remoteDbSecretName, pod.Name, dsnExecConfigSecret) + dsnexecLog.Info("DsnExec sidecar Injection required: ", pod.Name, pod.Annotations) return true, remoteDbSecretName, dsnExecConfigSecret }