Morality in SW isn't that black&white as you might think, just look at Obi-Wan and Yoda, it's like:
-Hey Yoda, I sense my friends are in danger, they can die.
-Nou, go you cannot, noob you are and Vader turn you will, here you must stay and move rocks some more you should.
or
-But Obi-Wan, Vader is my father, what should I do?
-What, he's just machine, kill him like a man, we're the good guys, remember? Btw, kill emperor too, cuz we jedi don't like him.
Imo Jedi are evil plague, many of them were traitors, and some betrayed their followers more than once, like Vader first republic, then his emperor when he saw he's too busy to steamroll him, or Kyle Katarn, or Ulic Qel-Droma, or Revan, or...