Harry Kane has agreed a new deal in principle with Bayern Munich until the summer of 2029.