Skip to content

Commit

Permalink
also log server name
Browse files Browse the repository at this point in the history
  • Loading branch information
defo89 committed Jan 29, 2025
1 parent 7ea2e99 commit 349aa56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/controller/server_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,10 @@ func (r *ServerReconciler) handleReservedState(ctx context.Context, log logr.Log
Namespace: server.Spec.ServerClaimRef.Namespace}, claim)
if err != nil {
if apierrors.IsNotFound(err) {
log.V(1).Info("ServerClaim not found, removing ServerClaimRef", "ServerClaim", server.Spec.ServerClaimRef.Name)
log.V(1).Info(
"ServerClaim not found, removing ServerClaimRef",
"Server", server.Name,
"ServerClaim", server.Spec.ServerClaimRef.Name)
serverBase := server.DeepCopy()
server.Spec.ServerClaimRef = nil
if err := r.Patch(ctx, server, client.MergeFrom(serverBase)); err != nil {
Expand Down

0 comments on commit 349aa56

Please sign in to comment.