Don't create a new controller context

This commit is contained in:
Jan Safranek 2024-11-06 11:20:48 +01:00
parent 4b99a342f4
commit 52b47ea4de

View File

@ -915,7 +915,6 @@ func startSELinuxWarningController(ctx context.Context, controllerContext Contro
return nil, true, fmt.Errorf("failed to probe volume plugins when starting SELinux warning controller: %w", err)
}
ctx = klog.NewContext(ctx, logger)
seLinuxController, err :=
selinuxwarning.NewController(
ctx,