Luke's sacrifice in The Last Jedi perfectly parallels Obi-Wan's in A New Hope: a failed master facing his consequently evil apprentice, giving up his own life to save the last hope for the galaxy while teaching said apprentice that their revenge will gain them nothing but further internal conflict.