You got to do what you got to do

You got to do what you got to do.

 and A man's gotta do what a man's gotta do.
One has to do whatever it is that one feels obliged to do. I know I wouldn't ever agree to that kind of thing, but you got to do what you got to do.
See also: what