I'm sure leadership in Ukraine was aware of an impeding war, but naturally that's not the type of thing you're gonna tell your citizens. It doesn't help anything; it would only cause panic, migration, and resource hoarding.