dra resourceclaim controller: enhance logging

Adding logging to event handlers makes it more obvious why (or why not) claims
and pods need to be processed.
This commit is contained in:
Patrick Ohly
2023-06-22 14:10:15 +02:00
parent d1ba893ad8
commit 7f5a02fc7e
4 changed files with 37 additions and 17 deletions

View File

@@ -353,6 +353,7 @@ const defaultResourceClaimControllerWorkers = 10
func startResourceClaimController(ctx context.Context, controllerContext ControllerContext) (controller.Interface, bool, error) {
ephemeralController, err := resourceclaim.NewController(
klog.FromContext(ctx),
controllerContext.ClientBuilder.ClientOrDie("resource-claim-controller"),
controllerContext.InformerFactory.Core().V1().Pods(),
controllerContext.InformerFactory.Resource().V1alpha2().ResourceClaims(),