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 1564c8e commit 0476d41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controllers/deployment_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 0476d41

Please sign in to comment.