resourceclaim controller: add missing log output

The logging was fairly complete about *not* doing something, but the actual
ResourceClaim creation was not logged.
This commit is contained in:
Patrick Ohly 2024-06-15 14:28:27 +02:00
parent 7f87629a3f
commit 2da9e660e3

View File

@ -657,6 +657,7 @@ func (ec *Controller) handleClaim(ctx context.Context, pod *v1.Pod, podClaim v1.
metrics.ResourceClaimCreateFailures.Inc()
return fmt.Errorf("create ResourceClaim %s: %v", claimName, err)
}
logger.V(4).Info("Created ResourceClaim", "claim", klog.KObj(claim), "pod", klog.KObj(pod))
ec.claimCache.Mutation(claim)
}