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 19, 2024
1 parent 87fcc43 commit bbc685e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/controllers/deployment_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,15 +400,16 @@ func (m milvusDeploymentUpdater) GetMilvus() *v1beta1.Milvus {
}

func (m milvusDeploymentUpdater) RollingUpdateImageDependencyReady() bool {
if m.Milvus.Status.ObservedGeneration < m.Milvus.Generation {
return false
}
deps := m.component.GetDependencies(m.Spec)
//Done: RollingUpdateImageDependencyReady
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

logger := ctrl.LoggerFrom(ctx)
if m.Milvus.Status.ObservedGeneration < m.Milvus.Generation {
logger.Info("RollingUpdateImageDependencyReady", "m.Milvus.Status.ObservedGeneration", m.Milvus.Status.ObservedGeneration, "m.Milvus.Generation", m.Milvus.Generation, "component", m.component)
return false
}
deps := m.component.GetDependencies(m.Spec)
logger.Info("RollingUpdateImageDependencyReady", "dep count", len(deps), "component", m.component)

for _, dep := range deps {
Expand Down

0 comments on commit bbc685e

Please sign in to comment.