If you mean upgrade to the stock rom ml1 you won't trip anything. If you want to keep your root privilleges i suggest you don't upgrade because you will lose it. If you want to lose root you should use triangleaway by chainfire to reset the root counter or read how to do it in the thread of the method you used to root your phone.
Then you are free to upgrade your rom with no worries of tripping knox.
Knox will be tripped with downgrade and flashing unofficial firmware.
If you'll flash genuine, full, untouched, unrooted stock - KNOX shall remain 0x0.
Root will be lost, obviously, and as soon as you'd use traditional rooting -you wil trigger the KNOX to 0x1.
So far, for 4.3 ROMs, the only method to root it without KNOX triggering is kingo root, however its use may rise some doubts about privacy and personal data access...
i confirm it work even with 4.4.2 stock rom. With this rom i have even permissive kernel and wanam xposed work for official status so ota updates are working . Knox still 0x0
If you mean upgrade to the stock rom ml1 you won't trip anything. If you want to keep your root privilleges i suggest you don't upgrade because you will lose it. If you want to lose root you should use triangleaway by chainfire to reset the root counter or read how to do it in the thread of the method you used to root your phone.
Then you are free to upgrade your rom with no worries of tripping knox.
Knox will be tripped with downgrade and flashing unofficial firmware.