From 49d4e44129eb5553e144672fa85fc3ee2ce34640 Mon Sep 17 00:00:00 2001 From: ianlee Date: Mon, 18 Mar 2024 19:51:50 +0900 Subject: [PATCH] add log print to reconcile --- pkg/controllers/components.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controllers/components.go b/pkg/controllers/components.go index a672468b..b6c14014 100644 --- a/pkg/controllers/components.go +++ b/pkg/controllers/components.go @@ -395,18 +395,18 @@ func (c MilvusComponent) IsImageUpdated(m *v1beta1.Milvus) bool { defer cancel() logger := ctrl.LoggerFrom(ctx) - logger.Info("IsImageUpdated", "ComponentsDeployStatus", len(m.Status.ComponentsDeployStatus), "name", c.GetName(), "component", m.Name) + logger.Info("IsImageUpdated", "ComponentsDeployStatus", len(m.Status.ComponentsDeployStatus), "name", c.GetName(), "component", m.Status.Endpoint, "component", m.Spec) if m.Status.ComponentsDeployStatus == nil { return false } deployStatus := m.Status.ComponentsDeployStatus[c.GetName()] - logger.Info("IsImageUpdated", "m.Spec.Com.Image", m.Spec.Com.Image, "deployStatus.Image", deployStatus.Image, "name", c.GetName(), "component", m.Name) + logger.Info("IsImageUpdated", "m.Spec.Com.Image", m.Spec.Com.Image, "deployStatus.Image", deployStatus.Image, "name", c.GetName(), "component", m.Status.Endpoint, "component", m.Spec) if m.Spec.Com.Image != deployStatus.Image { return false } - logger.Info("IsImageUpdated", "deployStatus.GetState()", deployStatus.GetState(), "name", c.GetName(), "component", m.Name) + logger.Info("IsImageUpdated", "deployStatus.GetState()", deployStatus.GetState(), "name", c.GetName(), "component", m.Status.Endpoint, "component", m.Spec) if deployStatus.GetState() != v1beta1.DeploymentComplete { return false }