Merge pull request #113622 from 249043822/br-context-logging-daemon

daemonset: use contextual logging
This commit is contained in:
Kubernetes Prow Robot
2023-03-14 09:38:28 -07:00
committed by GitHub
7 changed files with 326 additions and 219 deletions

View File

@@ -34,7 +34,9 @@ import (
)
func startDaemonSetController(ctx context.Context, controllerContext ControllerContext) (controller.Interface, bool, error) {
ctx = klog.NewContext(ctx, klog.LoggerWithName(klog.FromContext(ctx), "daemonset-controller"))
dsc, err := daemon.NewDaemonSetsController(
ctx,
controllerContext.InformerFactory.Apps().V1().DaemonSets(),
controllerContext.InformerFactory.Apps().V1().ControllerRevisions(),
controllerContext.InformerFactory.Core().V1().Pods(),