diff --git a/sidecar/pkg/sidecar/sidecar_utils.go b/sidecar/pkg/sidecar/sidecar_utils.go index 365515b460b..746cde2130f 100644 --- a/sidecar/pkg/sidecar/sidecar_utils.go +++ b/sidecar/pkg/sidecar/sidecar_utils.go @@ -143,7 +143,7 @@ func NewSideCarController(kubeClient *kubernetes.Clientset, controllerClient *cl if oldSecret.Name != secretName { return } - log.Println(fmt.Sprintf("Config secret '%s' sync", secretName)) + log.Printf("Config secret '%s' sync", secretName) newSecret := new.(*corev1.Secret) if newSecret.ResourceVersion == oldSecret.ResourceVersion { // Periodic resync will send update events for all known Tenants. @@ -177,7 +177,7 @@ func NewSideCarController(kubeClient *kubernetes.Clientset, controllerClient *cl if !strings.HasSuffix(dataStr, "\n") { dataStr = dataStr + "\n" } - c.regenCfgWithCfg(tenantName, namespace, string(data)) + c.regenCfgWithCfg(tenantName, namespace, dataStr) }, })