Diff two command outputs bash

Process substitution compares two streams without temp files

diff <(kubectl get cm a -o yaml) <(kubectl get cm b -o yaml)