If the road is too narrow to pass both the cyclist and the oncoming vehicle at the same time, you should stop and let the oncoming vehicle proceed before overtaking the cyclist.
If an obstacle on or next to the road makes it difficult, dangerous or impossible to proceed at the same time as another vehicle, and nothing else regulates the duty to give way, it is always the driver with the obstacle on his or her side of the road that should stop and give way.