Skip to content

Commit

Permalink
Fix logging shoot name
Browse files Browse the repository at this point in the history
  • Loading branch information
m00g3n committed Dec 2, 2024
1 parent 53b3536 commit a557072
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/controller/runtime/runtime_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,7 @@ func (r *RuntimeReconciler) Reconcile(ctx context.Context, request ctrl.Request)
runtimeID = runtime.Name
}

shootName, ok := runtime.Labels["kyma-project.io/shoot-name"]
if !ok {
shootName = "N/D"
}

log := r.Log.WithValues("runtimeID", runtimeID, "shootName", shootName, "requestID", r.RequestID.Add(1))
log := r.Log.WithValues("runtimeID", runtimeID, "shootName", runtime.Spec.Shoot.Name, "requestID", r.RequestID.Add(1))
log.Info("Reconciling Runtime", "Name", runtime.Name, "Namespace", runtime.Namespace)

stateFSM := fsm.NewFsm(
Expand Down

0 comments on commit a557072

Please sign in to comment.