Skip to content

Commit

Permalink
add log print to reconcile
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-lss committed Mar 15, 2024
1 parent 9510726 commit 762580d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/controllers/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func (c MilvusComponent) IsImageUpdated(m *v1beta1.Milvus) bool {
defer cancel()

logger := ctrl.LoggerFrom(ctx)
logger.Info("IsImageUpdated", "ComponentsDeployStatus", m.Status.ComponentsDeployStatus, "name", c.GetName())
logger.Info("IsImageUpdated", "ComponentsDeployStatus", len(m.Status.ComponentsDeployStatus), "name", c.GetName())

if m.Status.ComponentsDeployStatus == nil {
return false
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/deployment_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func updateMilvusContainer(template *corev1.PodTemplateSpec, updater deploymentU
updater.GetMilvus().Spec.Com.ImageUpdateMode == v1beta1.ImageUpdateModeAll || // image update mode is update all
updater.RollingUpdateImageDependencyReady() {
//Done: updateMilvusContainer
logger.Info("updateMilvusContainer", "container.Image", container.Image, "mergedComSpec.Image", mergedComSpec.Image)
logger.Info("updateMilvusContainer", "container.Image", container.Image, "mergedComSpec.Image", mergedComSpec.Image, "name", updater.GetComponentName())

container.Image = mergedComSpec.Image
}
Expand Down

0 comments on commit 762580d

Please sign in to comment.