Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/controller/eviction_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (r *EvictionReconciler) evictNext(ctx context.Context, eviction *kvmv1.Evic
instances := &eviction.Status.OutstandingInstances
uuid := (*instances)[len(*instances)-1]
log := logger.FromContext(ctx).WithName("Evict").WithValues("server", uuid)
logger.IntoContext(ctx, log)
ctx = logger.IntoContext(ctx, log)

res := servers.Get(ctx, r.computeClient, uuid)
vm, err := res.Extract()
Expand All @@ -255,7 +255,7 @@ func (r *EvictionReconciler) evictNext(ctx context.Context, eviction *kvmv1.Evic
}

log = log.WithValues("server_status", vm.Status)
logger.IntoContext(ctx, log)
ctx = logger.IntoContext(ctx, log)

// First, check the transient statuses
switch vm.Status {
Expand Down
Loading