They have no choice but to do what they are ordered to do.
They can’t all resign. Look at how many Sec of Defense O’bastard has had. Expecting every General to throw away their career in protest isn’t realistic.
Not every General. One publicly would be nice though. And just because they retire/resign because of the actions of one PResident...does not mean they can’t be brought back to active duty with another CINC.