From 0476d4171ebf2ecf46c0f1a0e1ff3fd876b36c46 Mon Sep 17 00:00:00 2001 From: ianlee Date: Fri, 15 Mar 2024 17:35:20 +0900 Subject: [PATCH] add log print to reconcile --- pkg/controllers/deployment_updater.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/controllers/deployment_updater.go b/pkg/controllers/deployment_updater.go index d4ea5a05..b01e73fc 100644 --- a/pkg/controllers/deployment_updater.go +++ b/pkg/controllers/deployment_updater.go @@ -243,6 +243,7 @@ func updateMilvusContainer(template *corev1.PodTemplateSpec, updater deploymentU } container.ImagePullPolicy = *mergedComSpec.ImagePullPolicy + logger.Info("updateMilvusContainer", "isCreating", isCreating, "updater.GetMilvus().IsRollingUpdateEnabled()", updater.GetMilvus().IsRollingUpdateEnabled(), "updater.GetMilvus().Spec.Com.ImageUpdateMode", updater.GetMilvus().Spec.Com.ImageUpdateMode) if isCreating || !updater.GetMilvus().IsRollingUpdateEnabled() || // rolling update is disabled updater.GetMilvus().Spec.Com.ImageUpdateMode == v1beta1.ImageUpdateModeAll || // image update mode is update all @@ -408,6 +409,7 @@ func (m milvusDeploymentUpdater) RollingUpdateImageDependencyReady() bool { defer cancel() logger := ctrl.LoggerFrom(ctx) + logger.Info("RollingUpdateImageDependencyReady", "dep count", len(deps), "component", m.component) for _, dep := range deps { logger.Info("RollingUpdateImageDependencyReady", "dep", fmt.Sprintf("%s:%s", dep.Name, dep.FieldName))